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>2023-05-31 15:07:08 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-31 15:07:08 +0300
commit07f6ded1cb698550284e5f348de8f1b884e715ae (patch)
treea9f09ab1c4e924d2efb2d689f723814703fced11 /lib/gitlab/auth.rb
parentb7a422e845aff188077292f3833e3105dae23062 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/auth.rb')
-rw-r--r--lib/gitlab/auth.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/auth.rb b/lib/gitlab/auth.rb
index 9268fdd8519..83d94d168a0 100644
--- a/lib/gitlab/auth.rb
+++ b/lib/gitlab/auth.rb
@@ -401,7 +401,7 @@ module Gitlab
scopes = non_admin_available_scopes
if resource.admin? # rubocop: disable Cop/UserAdmin
- scopes += Feature.enabled?(:admin_mode_for_api) ? ADMIN_SCOPES : [SUDO_SCOPE]
+ scopes += ADMIN_SCOPES
end
scopes