Skip to content

Commit

Permalink
Initial user should be an admin
Browse files Browse the repository at this point in the history
  • Loading branch information
Shpigford committed May 15, 2024
1 parent 5ed2c47 commit daf7ff8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/registrations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def new
def create
family = Family.new
@user.family = family
@user.role = :admin

if @user.save
Transaction::Category.create_default_categories(@user.family)
Expand Down

0 comments on commit daf7ff8

Please sign in to comment.