From 96b0c1245c93585a8b0fe23e22306d32ff4e4905 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 10 Jan 2020 12:07:47 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/views/layouts/nav/sidebar/_instance_statistics_links.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/layouts/nav/sidebar') diff --git a/app/views/layouts/nav/sidebar/_instance_statistics_links.html.haml b/app/views/layouts/nav/sidebar/_instance_statistics_links.html.haml index 580a25db171..ee2c83dc31e 100644 --- a/app/views/layouts/nav/sidebar/_instance_statistics_links.html.haml +++ b/app/views/layouts/nav/sidebar/_instance_statistics_links.html.haml @@ -1,4 +1,4 @@ -- return unless dashboard_nav_link?(:analytics) +- return unless can?(current_user, :read_instance_statistics) = nav_link(controller: :dev_ops_score) do = link_to instance_statistics_dev_ops_score_index_path do .nav-icon-container -- cgit v1.2.1