Inconsistency with "Request Access" button
Summary
Inconsistency when requesting access to a project, but can't give access to source code.
Steps to reproduce
- Configure a new project
- Set Project visibility to
public
orinternal
- Set Repository visibility to "Only team members"
What is the current bug behavior?
When accessing the project page to request access, the button is not visible.
If the Repository visibility is set to "Everyone", the button is shown, but also the code. And we don't wan't to give access to the code before the access is granted to a user.
What is the expected correct behavior?
The request access button is visible, and a user can request access to it without needing to access the source code first.
Screenshots
Project is internal/public and repository is "Only team members"
Project is internal/public and repository is "Everyone"
Output of checks
This bug happens on GitLab.com
This bug happens on GitLab CE