1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-20 21:59:38 +02:00

Initial user should be an admin

This commit is contained in:
Josh Pigford 2024-05-15 11:21:11 -05:00
parent 5ed2c47c20
commit daf7ff8ef4

View file

@ -13,6 +13,7 @@ class RegistrationsController < ApplicationController
def create def create
family = Family.new family = Family.new
@user.family = family @user.family = family
@user.role = :admin
if @user.save if @user.save
Transaction::Category.create_default_categories(@user.family) Transaction::Category.create_default_categories(@user.family)