summaryrefslogtreecommitdiff
path: root/app/helpers/nav_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/nav_helper.rb')
-rw-r--r--app/helpers/nav_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/nav_helper.rb b/app/helpers/nav_helper.rb
index d849ed9d076..578c7ae7923 100644
--- a/app/helpers/nav_helper.rb
+++ b/app/helpers/nav_helper.rb
@@ -47,7 +47,7 @@ module NavHelper
end
def has_extra_nav_icons?
- Gitlab::Sherlock.enabled? || can?(current_user, :read_instance_statistics) || current_user.admin?
+ Gitlab::Sherlock.enabled? || current_user.admin?
end
def page_has_markdown?
@@ -62,6 +62,10 @@ module NavHelper
%w(system_info background_jobs health_check requests_profiles)
end
+ def admin_analytics_nav_links
+ %w(dev_ops_report cohorts)
+ end
+
def group_issues_sub_menu_items
%w(groups#issues labels#index milestones#index boards#index boards#show)
end