From 81a37f05815a4c731a2d2c93302ddc554444b637 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 5 Nov 2021 15:11:48 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- lib/sidebars/projects/menus/infrastructure_menu.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sidebars/projects/menus/infrastructure_menu.rb') 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) -- cgit v1.2.1