Commit a7806e6b9615716f7ba35112eb702ca3349945b3

Authored by Javier Palomo Almena
1 parent 1d6f4a60

Support changing the 'restricted_visibility_levels' option

@@ -3,6 +3,8 @@ @@ -3,6 +3,8 @@
3 The latest version of this file can be found at the master branch of the 3 The latest version of this file can be found at the master branch of the
4 omnibus-gitlab repository. 4 omnibus-gitlab repository.
5 5
  6 +- Support changing the 'restricted_visibility_levels' option (Javier Palomo)
  7 +
6 7.1.0 8 7.1.0
7 - Build: explicitly use .forward for sending notifications 9 - Build: explicitly use .forward for sending notifications
8 - Fix MySQL build for Ubuntu 14.04 10 - Fix MySQL build for Ubuntu 14.04
files/gitlab-cookbooks/gitlab/attributes/default.rb
@@ -60,6 +60,7 @@ default['gitlab']['gitlab-rails']['gitlab_username_changing_enabled'] = nil @@ -60,6 +60,7 @@ default['gitlab']['gitlab-rails']['gitlab_username_changing_enabled'] = nil
60 default['gitlab']['gitlab-rails']['gitlab_default_theme'] = nil 60 default['gitlab']['gitlab-rails']['gitlab_default_theme'] = nil
61 default['gitlab']['gitlab-rails']['gitlab_signup_enabled'] = nil 61 default['gitlab']['gitlab-rails']['gitlab_signup_enabled'] = nil
62 default['gitlab']['gitlab-rails']['gitlab_signin_enabled'] = nil 62 default['gitlab']['gitlab-rails']['gitlab_signin_enabled'] = nil
  63 +default['gitlab']['gitlab-rails']['gitlab_restricted_visibility_levels'] = []
63 default['gitlab']['gitlab-rails']['gitlab_default_projects_features_issues'] = true 64 default['gitlab']['gitlab-rails']['gitlab_default_projects_features_issues'] = true
64 default['gitlab']['gitlab-rails']['gitlab_default_projects_features_merge_requests'] = true 65 default['gitlab']['gitlab-rails']['gitlab_default_projects_features_merge_requests'] = true
65 default['gitlab']['gitlab-rails']['gitlab_default_projects_features_wiki'] = true 66 default['gitlab']['gitlab-rails']['gitlab_default_projects_features_wiki'] = true
files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb
@@ -55,7 +55,7 @@ production: &base @@ -55,7 +55,7 @@ production: &base
55 55
56 # Restrict setting visibility levels for non-admin users. 56 # Restrict setting visibility levels for non-admin users.
57 # The default is to allow all levels. 57 # The default is to allow all levels.
58 - #restricted_visibility_levels: [ "public" ] 58 + restricted_visibility_levels: <%= @gitlab_restricted_visibility_levels %>
59 59
60 ## Automatic issue closing 60 ## Automatic issue closing
61 # If a commit message matches this regular expression, all issues referenced from the matched text will be closed. 61 # If a commit message matches this regular expression, all issues referenced from the matched text will be closed.