A restricted visibility setting should not be shown in the UI
Problem
When restricting a visibility setting, we currently present a greyed-out option for the relevant setting in the UI:
This introduces visual noise by presenting the user with something they cannot do.
Proposal
When restricting a visibility setting, do not show the restricted setting:
- on the new project, group, or snippet page
- as a visibility option for existing projects, groups, or snippets, unless the object already has the restricted visibility type.
- In other words, if
Internal
is being restricted, present the 3 visibility options withInternal
greyed out. WhenPrivate
orPublic
is selected,Internal
should no longer be presented when I return to the page.
- In other words, if
Update our documentation to clarify that if one or more of these visibility settings is not available, it's being restricted by an administrator.
Edited by Jeremy Watson (ex-GitLab)