diff options
author | Stan Hu <stanhu@gmail.com> | 2015-06-22 15:08:02 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-06-23 04:39:49 -0700 |
commit | e80d7a804f335447c8c4db8d8de3532957d80ec8 (patch) | |
tree | 0a6e720f703a922a69d59d64054cbde74d542d42 /lib | |
parent | 883438970df30ac7101d8f32b30007c4248c75d5 (diff) | |
download | gitlab-ce-e80d7a804f335447c8c4db8d8de3532957d80ec8.tar.gz |
Fix error when deleting a user who has projects
Closes #1856
Closes https://github.com/gitlabhq/gitlabhq/issues/9394
Diffstat (limited to 'lib')
-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 7d4c68c7412..9b268cfe8bc 100644 --- a/lib/api/users.rb +++ b/lib/api/users.rb @@ -194,7 +194,7 @@ module API user = User.find_by(id: params[:id]) if user - DeleteUserService.new.execute(user) + DeleteUserService.new(current_user).execute(user) else not_found!('User') end |