ian_
05/17/2022, 2:23 AMpermission denied for table identities
, probably because my RLS policy does a lookup in the identities table. how can I change the RLS policy to let someone lookup their own identity?Needle
05/17/2022, 2:23 AMian_
05/17/2022, 2:32 AM-- 2. Enable RLS
alter table auth.identities
enable row level security;
-- 3. Create Policy
create policy "Users can lookup their identity."
on auth.identities for select using (
user_id = auth.uid()
);
ian_
05/17/2022, 2:32 AMjaitaiwan
05/17/2022, 2:54 AMNeedle
05/17/2022, 2:54 AMian_
05/17/2022, 7:19 PMian_
05/17/2022, 7:20 PMian_
05/17/2022, 7:20 PMjaitaiwan
05/17/2022, 10:06 PMian_
05/17/2022, 11:02 PMNeedle
05/17/2022, 11:02 PM