summaryrefslogtreecommitdiff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <zegerjan@gitlab.com>2016-02-25 09:20:28 +0100
committerZeger-Jan van de Weg <zegerjan@gitlab.com>2016-03-15 21:09:25 +0100
commitb221d11a25218d3c2ad5304be91c849e1872be6c (patch)
tree41e52e9bf8367dd79f078ce22245ef98554d3829 /app/controllers/admin
parent4bcc0977500af7af070296e2faf817eed10aafb9 (diff)
downloadgitlab-ce-b221d11a25218d3c2ad5304be91c849e1872be6c.tar.gz
Add ability to delete a user with force
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/users_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb
index 3fe33018d73..3063d299b1a 100644
--- a/app/controllers/admin/users_controller.rb
+++ b/app/controllers/admin/users_controller.rb
@@ -119,7 +119,7 @@ class Admin::UsersController < Admin::ApplicationController
end
def destroy
- DeleteUserService.new(current_user).execute(user)
+ DeleteUserWorker.perform_async(current_user.id, user.id)
respond_to do |format|
format.html { redirect_to admin_users_path, notice: "The user is being deleted." }