Commit c4b109b2 authored by Timothy Andrew's avatar Timothy Andrew

Display the cycle analytics navbar based on the `:read_cycle_analytics` ability.

parent 6df2d573
......@@ -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
......
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