BigW Consortium Gitlab

Commit 9691d7e2 by Timothy Andrew

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
parent 8957293d
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment