Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Initial user should be an admin

Josh Pigforddaf7ff8ef4da
diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb
index d1049ff3..714fbb5e 100644
--- a/app/controllers/registrations_controller.rb
+++ b/app/controllers/registrations_controller.rb
@@ -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)