Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-18 21:08:04 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-18 21:08:04 +0300
commitbbe243060399191abcba33c7ebd611f6ec34c6cd (patch)
tree769ba47355cb903bc9139232d75710232ccb545a /app/helpers/dashboard_helper.rb
parentccf37fd3eca15cd5f55c1eba3b28d2798808d357 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/dashboard_helper.rb')
-rw-r--r--app/helpers/dashboard_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/dashboard_helper.rb b/app/helpers/dashboard_helper.rb
index 679622897aa..99ede8c3557 100644
--- a/app/helpers/dashboard_helper.rb
+++ b/app/helpers/dashboard_helper.rb
@@ -58,6 +58,10 @@ module DashboardHelper
links += [:activity, :milestones]
end
+ if can?(current_user, :read_instance_statistics)
+ links << :analytics
+ end
+
links
end
end