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:
parent
8957293d9b
commit
9691d7e226
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue