summaryrefslogtreecommitdiff
path: root/app/policies/project_policy.rb
diff options
context:
space:
mode:
authorManeschi Romain <rmaneschi@gmail.com>2019-09-05 21:17:36 +0000
committerClement Ho <408677-ClemMakesApps@users.noreply.gitlab.com>2019-09-05 21:17:36 +0000
commitdbca77e346468704a93c68e81a0f7fac84956308 (patch)
tree71cc75e4ab2eab28e809118314a8d4d1833e9c57 /app/policies/project_policy.rb
parentaadd1c8c84c451d9ce698d87f08a30a555a0b8b0 (diff)
downloadgitlab-ce-dbca77e346468704a93c68e81a0f7fac84956308.tar.gz
If user can't activate error tracking display a learn more button pointing
to doc
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 e2634692dc7..5c36b59f07b 100644
--- a/app/policies/project_policy.rb
+++ b/app/policies/project_policy.rb
@@ -294,6 +294,7 @@ class ProjectPolicy < BasePolicy
enable :destroy_release
enable :destroy_artifacts
enable :daily_statistics
+ enable :admin_operations
end
rule { (mirror_available & can?(:admin_project)) | admin }.enable :admin_remote_mirror