Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
978dca971085
Commit
d8dd7147
authored
Oct 05, 2017
by
Kamil Trzcinski
Browse files
Cluster can be read only by master
parent
e2d143824925
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/policies/project_policy.rb
View file @
978dca97
...
...
@@ -164,7 +164,6 @@ def self.create_read_update_admin(name)
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 @@ def self.create_read_update_admin(name)
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment