Commit 9691d7e2 authored by Timothy Andrew's avatar 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 ...@@ -46,6 +46,7 @@ class ProjectPolicy < BasePolicy
can! :create_issue can! :create_issue
can! :create_note can! :create_note
can! :upload_file can! :upload_file
can! :read_cycle_analytics
end end
def reporter_access! def reporter_access!
...@@ -107,7 +108,6 @@ class ProjectPolicy < BasePolicy ...@@ -107,7 +108,6 @@ class ProjectPolicy < BasePolicy
can! :admin_pipeline can! :admin_pipeline
can! :admin_environment can! :admin_environment
can! :admin_deployment can! :admin_deployment
can! :read_cycle_analytics
end end
def public_access! def public_access!
...@@ -205,6 +205,7 @@ class ProjectPolicy < BasePolicy ...@@ -205,6 +205,7 @@ class ProjectPolicy < BasePolicy
can! :read_commit_status can! :read_commit_status
can! :read_container_image can! :read_container_image
can! :download_code can! :download_code
can! :read_cycle_analytics
# NOTE: may be overridden by IssuePolicy # NOTE: may be overridden by IssuePolicy
can! :read_issue 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