Web IDE shows 404 when opening it using hot key with insufficient permissions
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=437899)
</details>
<!--IssueSummary end-->
### Summary
When trying to access Web IDE as a Reporter or Guest via the hot key `.`, Web IDE shows 404 instead of the invitation to fork a project.
### **Steps to reproduce**
* Create a project and add a user with Reporter permissions there
* Login as this user, open the project and try to open Web IDE using hot key `.`
### What is the current _bug_ behavior?
You will get 404 when trying to open Web IDE.
### What is the expected _correct_ behavior?
When a user tries to open Web IDE via `Edit` menu, the message `You can’t edit files directly in this project. Fork this project and submit a merge request with your changes.` is shown with an invitation to fork a project. Users should observe the same behavior when trying to open Web IDE via the hot key.
### Relevant logs and/or screenshots
n/a
issue