summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-03-01 18:33:31 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-03-01 18:33:31 +0000
commit0fcbe48468f0e566929599dda36b2dedd72e5708 (patch)
tree0a33f7a23aee7cffaa0d07046c5c0573aec3a7d2 /app/services
parentcf599b3cb9210c48820e7d88c4393303aa28826e (diff)
downloadgitlab-ce-0fcbe48468f0e566929599dda36b2dedd72e5708.tar.gz
Add latest changes from gitlab-org/security/gitlab@15-8-stable-ee
Diffstat (limited to 'app/services')
-rw-r--r--app/services/resource_access_tokens/create_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/resource_access_tokens/create_service.rb b/app/services/resource_access_tokens/create_service.rb
index f6fe23b4555..c6948536053 100644
--- a/app/services/resource_access_tokens/create_service.rb
+++ b/app/services/resource_access_tokens/create_service.rb
@@ -125,7 +125,7 @@ module ResourceAccessTokens
def do_not_allow_owner_access_level_for_project_bot?(access_level)
resource.is_a?(Project) &&
- access_level.to_i == Gitlab::Access::OWNER &&
+ access_level == Gitlab::Access::OWNER &&
!current_user.can?(:manage_owners, resource)
end
end