diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-01 21:29:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-01 21:29:28 +0300 |
commit | 0c738dd9b13c6276975e25440d03d4db660adcb1 (patch) | |
tree | 6d7f829e618050289cb87fb1b5540308d85de457 /app/services/resource_access_tokens/create_service.rb | |
parent | 47414496d427785d86832bcaca617233f904a2e0 (diff) |
Add latest changes from gitlab-org/security/gitlab@15-9-stable-ee
Diffstat (limited to 'app/services/resource_access_tokens/create_service.rb')
-rw-r--r-- | app/services/resource_access_tokens/create_service.rb | 2 |
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 c6948536053..f6fe23b4555 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 == Gitlab::Access::OWNER && + access_level.to_i == Gitlab::Access::OWNER && !current_user.can?(:manage_owners, resource) end end |