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:
Timothy Andrew 2016-08-26 16:24:30 +05:30
parent 331080bca6
commit 2f57eee7da
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -265,7 +265,8 @@ class Ability
:read_container_image,
:read_pipeline,
:read_environment,
:read_deployment
:read_deployment,
:read_cycle_analytics
]
end