Commit d8dd7147 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Cluster can be read only by master

parent 0ca9ea6e
...@@ -164,7 +164,6 @@ class ProjectPolicy < BasePolicy ...@@ -164,7 +164,6 @@ class ProjectPolicy < BasePolicy
enable :create_pipeline enable :create_pipeline
enable :update_pipeline enable :update_pipeline
enable :create_pipeline_schedule enable :create_pipeline_schedule
enable :read_cluster
enable :create_merge_request enable :create_merge_request
enable :create_wiki enable :create_wiki
enable :push_code enable :push_code
...@@ -189,12 +188,13 @@ class ProjectPolicy < BasePolicy ...@@ -189,12 +188,13 @@ class ProjectPolicy < BasePolicy
enable :admin_build enable :admin_build
enable :admin_container_image enable :admin_container_image
enable :admin_pipeline enable :admin_pipeline
enable :create_cluster
enable :admin_environment enable :admin_environment
enable :admin_deployment enable :admin_deployment
enable :admin_pages enable :admin_pages
enable :read_pages enable :read_pages
enable :update_pages enable :update_pages
enable :read_cluster
enable :create_cluster
end end
rule { can?(:public_user_access) }.policy do rule { can?(:public_user_access) }.policy do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment