diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-10-05 17:05:09 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-10-05 17:05:09 +0200 |
commit | d8dd7147b5a88818d159499df9b08c43ce95126e (patch) | |
tree | 3049fd08cd3769d8dcf7bd2151b258699e8f3baa /app/policies | |
parent | 0ca9ea6e7f09ccaed1d6d55f83a1b81adbc4328a (diff) | |
download | gitlab-ce-d8dd7147b5a88818d159499df9b08c43ce95126e.tar.gz |
Cluster can be read only by master
Diffstat (limited to 'app/policies')
-rw-r--r-- | app/policies/project_policy.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/policies/project_policy.rb b/app/policies/project_policy.rb index b9894284226..f599eab42f2 100644 --- a/app/policies/project_policy.rb +++ b/app/policies/project_policy.rb @@ -164,7 +164,6 @@ class ProjectPolicy < BasePolicy enable :create_pipeline enable :update_pipeline enable :create_pipeline_schedule - enable :read_cluster enable :create_merge_request enable :create_wiki enable :push_code @@ -189,12 +188,13 @@ class ProjectPolicy < BasePolicy enable :admin_build enable :admin_container_image enable :admin_pipeline - enable :create_cluster enable :admin_environment enable :admin_deployment enable :admin_pages enable :read_pages enable :update_pages + enable :read_cluster + enable :create_cluster end rule { can?(:public_user_access) }.policy do |