Commit c8249327 authored by Yorick Peterse's avatar Yorick Peterse

Change DeleteUserWorker to match CE

This changes DeleteUserWorker so its code is the same as in CE.
parent c4bde1c3
......@@ -7,7 +7,7 @@ class DeleteUserWorker
delete_user = User.find(delete_user_id)
current_user = User.find(current_user_id)
::Users::DestroyService.new(current_user).execute(delete_user, options.symbolize_keys)
Users::DestroyService.new(current_user).execute(delete_user, options.symbolize_keys)
rescue Gitlab::Access::AccessDeniedError => e
Rails.logger.warn("User could not be destroyed: #{e}")
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment