Skip to content

Commit

Permalink
fixing params in user roles
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasConnolly committed Jul 24, 2023
1 parent 73c2df9 commit 36223e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def set_user
end

def user_params
params.require(:user).permit(:first_name, :last_name, :username, roles: [],
:avatar, :stripe_id, :stripe_pledge_id, :member_id)
params.require(:user).permit(:first_name, :last_name, :username,
:avatar, :stripe_id, :stripe_pledge_id, roles: [])
end

def admin_only
Expand Down
Binary file modified dump.rdb
Binary file not shown.

0 comments on commit 36223e9

Please sign in to comment.