Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2018-06-14 13:34:09 +0300
committerTiago Botelho <tiagonbotelho@hotmail.com>2018-06-20 11:56:07 +0300
commitf61dcfe816ce28427622e5a314e972ae4b33b9ea (patch)
tree1fa908555a6a06733c5917f1e2a515bee0393631 /app/policies
parentc02f396be5e76a4b4ea8dceebc0b4b530a18dabd (diff)
Operations and Kubernetes items are now omitted in the sidebar when repository or builds are disabled
Diffstat (limited to 'app/policies')
-rw-r--r--app/policies/project_policy.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/policies/project_policy.rb b/app/policies/project_policy.rb
index 8ea5435d740..199bcf92b21 100644
--- a/app/policies/project_policy.rb
+++ b/app/policies/project_policy.rb
@@ -297,6 +297,7 @@ class ProjectPolicy < BasePolicy
prevent(*create_read_update_admin_destroy(:build))
prevent(*create_read_update_admin_destroy(:pipeline_schedule))
prevent(*create_read_update_admin_destroy(:environment))
+ prevent(*create_read_update_admin_destroy(:cluster))
prevent(*create_read_update_admin_destroy(:deployment))
end