Skip to content
Snippets Groups Projects
Commit 2f57eee7 authored by Timothy Andrew's avatar Timothy Andrew
Browse files

Authorize access to cycle analytics.

All users with "Reporter" access (and above) to a project can see the
Cycle Analytics page.
parent 331080bc
No related branches found
No related tags found
No related merge requests found
class Projects::CycleAnalyticsController < Projects::ApplicationController
before_action :authorize_read_cycle_analytics!
def show
@cycle_analytics = CycleAnalytics.new(@project, from: parse_start_date)
end
Loading
Loading
Loading
Loading
@@ -265,7 +265,8 @@ class Ability
:read_container_image,
:read_pipeline,
:read_environment,
:read_deployment
:read_deployment,
:read_cycle_analytics
]
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment