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
This commit is contained in:
Timothy Andrew 2016-09-20 16:22:19 +05:30
parent 8957293d9b
commit 9691d7e226
1 changed files with 2 additions and 1 deletions

View File

@ -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