Peanut
08/27/2021, 1:38 AMauthenticated
role to UPDATE the users table?jason-lynx
08/27/2021, 1:40 AMGRANT SELECT, UPDATE ON public.users TO authenticated
right? yes you would need these if it's not currently availablejason-lynx
08/27/2021, 1:41 AMauthenticated
user to access tables by defaultPeanut
08/27/2021, 2:11 AMjason-lynx
08/27/2021, 2:24 AMauthenticated
and public.users
jason-lynx
08/27/2021, 2:24 AMPeanut
08/27/2021, 2:25 AMPeanut
08/27/2021, 2:26 AMjason-lynx
08/27/2021, 2:29 AMauthenticated
user have access to userAdminMeta
table?jason-lynx
08/27/2021, 2:29 AMPeanut
08/27/2021, 2:29 AMPeanut
08/27/2021, 2:37 AMPeanut
08/27/2021, 2:38 AMPeanut
08/27/2021, 2:38 AMjason-lynx
08/27/2021, 2:43 AMjason-lynx
08/27/2021, 2:43 AMPeanut
08/27/2021, 2:43 AMPeanut
08/27/2021, 3:16 AMjason-lynx
08/27/2021, 4:31 AMpostgres
user?jason-lynx
08/27/2021, 4:32 AMservice_role
, postgres
, supabase_admin
all bypass row-level security (RLS), so there isnt really any reading of the policies with thosejason-lynx
08/27/2021, 4:32 AMauthenticated
, because you were either using postgres
or supabase_admin
jason-lynx
08/27/2021, 4:34 AMSECURITY DEFINER
functions that are executed with the privileges of the user that creates the function: https://www.postgresql.org/docs/current/sql-createfunction.htmlPeanut
08/27/2021, 6:54 AM