Skip to content

Commit 99e0398

Browse files
committed
Fix typo
1 parent a2d75c8 commit 99e0398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/api/v8/users_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def update
124124

125125
@user = current_user
126126
@user = User.find_by!(id: params[:id]) unless params[:id] == 'current'
127-
authorize! :update, user
127+
authorize! :update, @user
128128
set_user_fields
129129
set_extra_data
130130
if @user.save

0 commit comments

Comments
 (0)