Links limited permission public projects do not redirect to login page
Summary
Public Projects with limited permissions, when linked to (such as from email notifications), do not redirect to a login page. But instead will return a 404.
Steps to reproduce
- Create a public project.
- Update permission in Settings > General
- Set Issues/Repository to Only Project Members
- Create Issue/Merge request
- Navigate to in a new session/incognito window. Ex: http://gitlab/group/project/issues/1
What is the current bug behavior?
Pages return a 404
What is the expected correct behavior?
Redirect to login page
Internal Zendesk: https://gitlab.zendesk.com/agent/tickets/90522 Reproduced on 10.4.3