BigW Consortium Gitlab

Commit 2f57eee7 by Timothy Andrew

Authorize access to cycle analytics.

All users with "Reporter" access (and above) to a project can see the Cycle Analytics page.
parent 331080bc
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
......
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