mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
Initial user should be an admin
This commit is contained in:
parent
5ed2c47c20
commit
daf7ff8ef4
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue