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

This commit is contained in:
Timothy Andrew 2016-09-21 02:31:04 +05:30
parent 6df2d57394
commit c4b109b2a4

View file

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