summaryrefslogtreecommitdiff
path: root/lib/sidebars/projects
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-05 00:16:56 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-05 00:16:56 +0000
commit92a2c36b8cbbe4a7c0991312c28aa088a15201e6 (patch)
treec7545328646a92d8ddbf0798bd6f86301deb8fe7 /lib/sidebars/projects
parent269e52662aceba62b91424e87f4def90ecc81e6c (diff)
downloadgitlab-ce-92a2c36b8cbbe4a7c0991312c28aa088a15201e6.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/sidebars/projects')
-rw-r--r--lib/sidebars/projects/menus/infrastructure_menu.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sidebars/projects/menus/infrastructure_menu.rb b/lib/sidebars/projects/menus/infrastructure_menu.rb
index a7cd920a74c..704b311a647 100644
--- a/lib/sidebars/projects/menus/infrastructure_menu.rb
+++ b/lib/sidebars/projects/menus/infrastructure_menu.rb
@@ -45,7 +45,7 @@ module Sidebars
end
def kubernetes_menu_item
- unless can?(context.current_user, :read_cluster, context.project)
+ unless can?(context.current_user, :read_cluster_agent, context.project)
return ::Sidebars::NilMenuItem.new(item_id: :kubernetes)
end