diff options
author | Sam Rose <sam@gitlab.com> | 2017-04-06 21:02:25 -0400 |
---|---|---|
committer | Sam Rose <sam@gitlab.com> | 2017-04-06 21:02:25 -0400 |
commit | bb23534b37f0eff6075dbc1a3337009c9f19c327 (patch) | |
tree | c9f465801b7c907ab1160b3d0378e1087bf3507f /lib/api/users.rb | |
parent | b47d8a333c9aa554f6b820c6da101b67d85015c8 (diff) | |
parent | 3900aa803e574ddbcdb1a899f0e6085a0bb6c457 (diff) | |
download | gitlab-ce-mr-shortcuts-counter.tar.gz |
Update branch with latest stable commitsmr-shortcuts-counter
Diffstat (limited to 'lib/api/users.rb')
-rw-r--r-- | lib/api/users.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb index 549003f576a..a309be9d0fa 100644 --- a/lib/api/users.rb +++ b/lib/api/users.rb @@ -312,7 +312,7 @@ module API user = User.find_by(id: params[:id]) not_found!('User') unless user - ::Users::DestroyService.new(current_user).execute(user) + DeleteUserWorker.perform_async(current_user.id, user.id) end desc 'Block a user. Available only for admins.' |