summaryrefslogtreecommitdiff
path: root/app/policies
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-09-08 15:03:38 +0530
committerTimothy Andrew <mail@timothyandrew.net>2016-09-08 15:03:38 +0530
commit9901c3df41d37e5d5650e28a5287a8ddf0aa754e (patch)
tree0f10ce6cfa414a45aeb3d260eb4f70b44cbe2774 /app/policies
parentf5b9837c19f48255237eca1e618fc632a45b58b5 (diff)
downloadgitlab-ce-9901c3df41d37e5d5650e28a5287a8ddf0aa754e.tar.gz
Add a JSON version of the `CycleAnalytics` page.
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 acf36d422d1..08feb2cbb0e 100644
--- a/app/policies/project_policy.rb
+++ b/app/policies/project_policy.rb
@@ -101,6 +101,7 @@ class ProjectPolicy < BasePolicy
can! :admin_pipeline
can! :admin_environment
can! :admin_deployment
+ can! :read_cycle_analytics
end
def public_access!