summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-08-03 12:02:37 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-03 12:02:37 +0000
commit70966bf1a7079852c7857d2868e14830b100a92d (patch)
tree194f657c3cadfc92906eeb0bbb1cad7d5df18e10 /lib
parentb1bbcf85684cee176ed5bb7eb43dd487a75f18fa (diff)
downloadgitlab-ce-70966bf1a7079852c7857d2868e14830b100a92d.tar.gz
Add latest changes from gitlab-org/security/gitlab@14-1-stable-ee
Diffstat (limited to 'lib')
-rw-r--r--lib/sidebars/projects/menus/analytics_menu.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sidebars/projects/menus/analytics_menu.rb b/lib/sidebars/projects/menus/analytics_menu.rb
index 9f366a19e90..29fd0609596 100644
--- a/lib/sidebars/projects/menus/analytics_menu.rb
+++ b/lib/sidebars/projects/menus/analytics_menu.rb
@@ -46,6 +46,7 @@ module Sidebars
def ci_cd_analytics_menu_item
if !context.project.feature_available?(:builds, context.current_user) ||
!can?(context.current_user, :read_build, context.project) ||
+ !can?(context.current_user, :read_ci_cd_analytics, context.project) ||
context.project.empty_repo?
return ::Sidebars::NilMenuItem.new(item_id: :ci_cd_analytics)
end