Skip to content

Restricted visibility levels

This merge-request enables the restricted_visibility_levels option in the gitlab config file (/etc/gitlab/gitlab.rb).

By default, it enables all the options: public, internal and private.

To disable public and enable internal and private, add the following line to your /etc/gitlab/gitlab.rb: gitlab_rails['gitlab_restricted_visibility_levels'] = [ "public" ]

To disable public and internal, and enable private, add one of the following lines to your /etc/gitlab/gitlab.rb (both are equivalent): gitlab_rails['gitlab_restricted_visibility_levels'] = [ "public", "internal"] gitlab_rails['gitlab_restricted_visibility_levels'] = [ "public", "internal", "private" ]

Merge request reports