FIX: Undefined variable.

This commit is contained in:
Guo Xiang Tan 2017-01-04 17:37:23 +08:00
parent 43d950f813
commit 5098baee2f
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ class Admin::UsersController < Admin::AdminController
group = Group.find(params[:group_id].to_i)
return render_json_error group unless group && !group.automatic
group.remove(@user)
GroupActionLogger.new(current_user, group).log_remove_user_from_group(user)
GroupActionLogger.new(current_user, group).log_remove_user_from_group(@user)
render nothing: true
end