Display the cycle analytics navbar based on the :read_cycle_analytics
ability.
This commit is contained in:
parent
6df2d57394
commit
c4b109b2a4
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@
|
||||||
%span
|
%span
|
||||||
Environments
|
Environments
|
||||||
|
|
||||||
- if current_user
|
- if can?(current_user, :read_cycle_analytics, @project)
|
||||||
= nav_link(controller: %w(cycle_analytics)) do
|
= nav_link(controller: %w(cycle_analytics)) do
|
||||||
= link_to project_cycle_analytics_path(@project), title: 'Cycle Analytics' do
|
= link_to project_cycle_analytics_path(@project), title: 'Cycle Analytics' do
|
||||||
%span
|
%span
|
||||||
|
|
Loading…
Reference in a new issue