summaryrefslogtreecommitdiff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2017-06-02 13:35:37 +0100
committerNick Thomas <nick@gitlab.com>2017-06-05 17:48:57 +0100
commitf09b7f56077f8b1deb88dd565717e8ed0d8e6aee (patch)
treef43fadbe24c6377a7252474d91d7adcca947e9df /app/controllers/admin
parent158581a447bb4976161eca26ddcb2fccd25888ab (diff)
downloadgitlab-ce-f09b7f56077f8b1deb88dd565717e8ed0d8e6aee.tar.gz
Support hard deletion in Admin::UsersController#destroy
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 563bcc65bd6..bace99dad58 100644
--- a/app/controllers/admin/users_controller.rb
+++ b/app/controllers/admin/users_controller.rb
@@ -138,7 +138,7 @@ class Admin::UsersController < Admin::ApplicationController
end
def destroy
- DeleteUserWorker.perform_async(current_user.id, user.id)
+ user.delete_async(deleted_by: current_user, params: params.permit(:hard_delete))
respond_to do |format|
format.html { redirect_to admin_users_path, notice: "The user is being deleted." }