Creating an project within an internal sub-group gives the option to set it a public
Resources
Summary
When creating a project with a different visibility than its group, the all visibility buttons are exposed (including the ones that shouldn't be available). Clicking on them leads to an error.
Steps to reproduce
- Create a subgroup with 'internal visibilty'
- Create a new project within the subgroup
- Try to set the project as public
What is the current bug behavior?
The public button is exposed, giving the impression that the project can be set to public, but instead gives an error
What is the expected correct behavior?
The public button should not be visible
Relevant logs and/or screenshots
GitLab environment
9.0.5
Design
When the parent group is interal, the Public
option will be disabled and have a help text.
- Help text:
This project cannot be public because the visibility of ParentGroupName is internal. To change this project to public, you must first change the visibility of the parent group.
Edited by Filipa Lacerda