how can i change the default (authenticated) role ...
# help
g
how can i change the default (authenticated) role of a user? I would like to separate admins from users with roles, but I don't know how to do that.
s
As @User said, this is for the db-level access. The concept of 'authenticated' to the database is different from the concept of 'authenticated' in your application. They're different parts of your code stack and should be handled differently. If you want to create a user role system, create a
roles
table which includes columns for different permissions (e.g.
can_submit_blog_post
,
can_edit_blog_post
). Then, create 1 row for each group. Then, in your users table, create a
role
column that has a foreign key reference to your
roles
table.
g
thank you guys, i did it that way and it worked. thx again