Skip to content

Commit

Permalink
Fix renaming of user (#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilco375 authored Mar 23, 2023
1 parent 7893f34 commit 4acc927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def update
@user = User.find(params[:id])
authorize @user

if @user.update(params.require(:user).permit(%i[username email deactivated]))
if @user.update(params.require(:user).permit(%i[name email deactivated]))
flash[:success] = 'Gebruiker geupdate'
else
flash[:error] = "Gebruiker updaten mislukt; #{@user.errors.full_messages.join(', ')}"
Expand Down

0 comments on commit 4acc927

Please sign in to comment.