diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-06-14 13:34:09 +0300 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-06-20 11:56:07 +0300 |
commit | f61dcfe816ce28427622e5a314e972ae4b33b9ea (patch) | |
tree | 1fa908555a6a06733c5917f1e2a515bee0393631 /app/policies/project_policy.rb | |
parent | c02f396be5e76a4b4ea8dceebc0b4b530a18dabd (diff) |
Operations and Kubernetes items are now omitted in the sidebar when repository or builds are disabled
Diffstat (limited to 'app/policies/project_policy.rb')
-rw-r--r-- | app/policies/project_policy.rb | 1 |
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 |