Fix: Guest sees some repository details and gets 404
What does this MR do?
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/24056
What are the relevant issue numbers?
Closes #24056 (closed)
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/24056
Closes #24056 (closed)