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:
parent
5ed2c47c20
commit
daf7ff8ef4
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue