summaryrefslogtreecommitdiff
path: root/lib/sidebars/projects/menus/infrastructure_menu.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-11-05 15:11:48 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-11-05 15:11:48 +0000
commit81a37f05815a4c731a2d2c93302ddc554444b637 (patch)
tree447d3a8890961e63efc47280ac15f06c9c0567ff /lib/sidebars/projects/menus/infrastructure_menu.rb
parentf7406657b9ed27af2970a88ce4f73c35b162dfb8 (diff)
downloadgitlab-ce-81a37f05815a4c731a2d2c93302ddc554444b637.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/sidebars/projects/menus/infrastructure_menu.rb')
-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 92e9cbb7040..c0c1b9b195c 100644
--- a/lib/sidebars/projects/menus/infrastructure_menu.rb
+++ b/lib/sidebars/projects/menus/infrastructure_menu.rb
@@ -91,7 +91,7 @@ module Sidebars
def google_cloud_menu_item
feature_is_enabled = Feature.enabled?(:incubation_5mp_google_cloud)
- user_has_permissions = can?(context.current_user, :manage_project_google_cloud, context.project)
+ user_has_permissions = can?(context.current_user, :admin_project_google_cloud, context.project)
unless feature_is_enabled && user_has_permissions
return ::Sidebars::NilMenuItem.new(item_id: :incubation_5mp_google_cloud)