Muphet
09/27/2021, 8:33 AMsilentworks
09/27/2021, 8:46 AMroles
and do all your permission stuff in there and then use Postgres Row Level Security (RLS) to allow access based on the roles
table.Muphet
09/27/2021, 9:00 AM((uid() = added_by) OR ( SELECT (profiles.id = uid()) FROM profiles))
Muphet
09/27/2021, 9:00 AMMuphet
09/27/2021, 9:01 AMsilentworks
09/27/2021, 9:06 AMauth
schema, so auth.users
role
is not something you want to mess with.Muphet
09/27/2021, 9:40 AMsilentworks
09/27/2021, 10:35 AM