diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2016-09-20 16:22:19 +0530 |
---|---|---|
committer | Timothy Andrew <mail@timothyandrew.net> | 2016-09-20 16:22:19 +0530 |
commit | 9691d7e226da7bb468b3dc5ad410d21f8df4c243 (patch) | |
tree | bcea8aa52ebee12b98c11383852181c86003bf2a /app/policies | |
parent | 8957293d9bd0d711db3af26182205c2fe4125194 (diff) | |
download | gitlab-ce-9691d7e226da7bb468b3dc5ad410d21f8df4c243.tar.gz |
Cycle analytics should be accessible to all for public projects.
- Public projects - anyone can access
- Private projects - any member (guest level and above) can access
Diffstat (limited to 'app/policies')
-rw-r--r-- | app/policies/project_policy.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/policies/project_policy.rb b/app/policies/project_policy.rb index ae77b2f0506..be25c750d67 100644 --- a/app/policies/project_policy.rb +++ b/app/policies/project_policy.rb @@ -46,6 +46,7 @@ class ProjectPolicy < BasePolicy can! :create_issue can! :create_note can! :upload_file + can! :read_cycle_analytics end def reporter_access! @@ -107,7 +108,6 @@ class ProjectPolicy < BasePolicy can! :admin_pipeline can! :admin_environment can! :admin_deployment - can! :read_cycle_analytics end def public_access! @@ -205,6 +205,7 @@ class ProjectPolicy < BasePolicy can! :read_commit_status can! :read_container_image can! :download_code + can! :read_cycle_analytics # NOTE: may be overridden by IssuePolicy can! :read_issue |