From c4b109b2a453339a952814e6dd9521547eea40fe Mon Sep 17 00:00:00 2001 From: Timothy Andrew Date: Wed, 21 Sep 2016 02:31:04 +0530 Subject: Display the cycle analytics navbar based on the `:read_cycle_analytics` ability. --- app/views/projects/pipelines/_head.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/pipelines/_head.html.haml b/app/views/projects/pipelines/_head.html.haml index a97674e84ba..5f571499e80 100644 --- a/app/views/projects/pipelines/_head.html.haml +++ b/app/views/projects/pipelines/_head.html.haml @@ -20,7 +20,7 @@ %span Environments - - if current_user + - if can?(current_user, :read_cycle_analytics, @project) = nav_link(controller: %w(cycle_analytics)) do = link_to project_cycle_analytics_path(@project), title: 'Cycle Analytics' do %span -- cgit v1.2.1