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
family = Family.new
@user.family = family
@user.role = :admin
if @user.save
Transaction::Category.create_default_categories(@user.family)