summaryrefslogtreecommitdiff
path: root/app/policies
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-10-01 20:30:32 +0900
committerShinya Maeda <shinya@gitlab.com>2017-10-01 20:30:32 +0900
commit5663b4808df787b1bcbf32ba54eccbb4c7537e25 (patch)
treedb851b0b94ee77d493dc787f67fe63136dab4fef /app/policies
parent2d1a77b8a3567cae61f73196918fe365d4fe9415 (diff)
downloadgitlab-ce-5663b4808df787b1bcbf32ba54eccbb4c7537e25.tar.gz
authorize in controller. validation in model.
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 b7b5bd34189..279b19eb576 100644
--- a/app/policies/project_policy.rb
+++ b/app/policies/project_policy.rb
@@ -188,6 +188,7 @@ class ProjectPolicy < BasePolicy
enable :admin_build
enable :admin_container_image
enable :admin_pipeline
+ enable :admin_cluster
enable :admin_environment
enable :admin_deployment
enable :admin_pages