Authorize access to cycle analytics.
All users with "Reporter" access (and above) to a project can see the Cycle Analytics page.
This commit is contained in:
parent
331080bca6
commit
2f57eee7da
2 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
|||
class Projects::CycleAnalyticsController < Projects::ApplicationController
|
||||
before_action :authorize_read_cycle_analytics!
|
||||
|
||||
def show
|
||||
@cycle_analytics = CycleAnalytics.new(@project, from: parse_start_date)
|
||||
end
|
||||
|
|
|
@ -265,7 +265,8 @@ class Ability
|
|||
:read_container_image,
|
||||
:read_pipeline,
|
||||
:read_environment,
|
||||
:read_deployment
|
||||
:read_deployment,
|
||||
:read_cycle_analytics
|
||||
]
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue