We've moved discussions to Discord

Why not have the first user default as admin?

Dan Tappin
Shouldn't the first user default as an admin user?  It's an easy fix on your local dev deploy but why not make it easy.  Doesn't make themselves the first user and an admin?
Dan Weaver
+1
Dan Weaver
Added this code and made a pull request. It incurs a database call for every user created so I'm not sure it's worth it. I don't know of a way to do this without hitting the database.

https://gitlab.com/gorails/jumpstart-pro/merge_requests/3
Dan Tappin
Shouldn't the first user default as an admin user?  It's an easy fix on your local dev deploy but why not make it easy.  Doesn't make themselves the first user and an admin?
Dan Weaver
+1
Dan Weaver
Added this code and made a pull request. It incurs a database call for every user created so I'm not sure it's worth it. I don't know of a way to do this without hitting the database.

https://gitlab.com/gorails/jumpstart-pro/merge_requests/3
Notifications
You’re not receiving notifications from this thread.
© 2023 Jumpstart Pro by GoRails, LLC