mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-20 14:11:11 +00:00
Add latest changes from gitlab-org/security/gitlab@16-6-stable-ee
This commit is contained in:
@ -153,13 +153,7 @@ module API
|
||||
token = find_token(resource, params[:token_id]) if resource_accessible
|
||||
|
||||
if token
|
||||
response = if source_type == "project"
|
||||
::ProjectAccessTokens::RotateService.new(current_user, token, resource)
|
||||
.execute(declared_params)
|
||||
else
|
||||
::PersonalAccessTokens::RotateService.new(current_user, token)
|
||||
.execute(declared_params)
|
||||
end
|
||||
response = ::PersonalAccessTokens::RotateService.new(current_user, token).execute(declared_params)
|
||||
|
||||
if response.success?
|
||||
status :ok
|
||||
|
Reference in New Issue
Block a user