summaryrefslogtreecommitdiff
path: root/app/policies/project_policy.rb
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2018-06-14 11:34:09 +0100
committerTiago Botelho <tiagonbotelho@hotmail.com>2018-06-20 09:56:07 +0100
commitf61dcfe816ce28427622e5a314e972ae4b33b9ea (patch)
tree1fa908555a6a06733c5917f1e2a515bee0393631 /app/policies/project_policy.rb
parentc02f396be5e76a4b4ea8dceebc0b4b530a18dabd (diff)
downloadgitlab-ce-f61dcfe816ce28427622e5a314e972ae4b33b9ea.tar.gz
Operations and Kubernetes items are now omitted in the sidebar when repository or builds are disabled47631-operations-kubernetes-option-is-always-visible-when-repository-or-builds-are-disabled
Diffstat (limited to 'app/policies/project_policy.rb')
-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