Storage RLS Help
Hi folks,
Uploading file to storage is failing even tho the rls should pass, i wrote queries to test and they call pass.
Here are the policies:
for INSERT:
call from my next app:
returns user with role authenticated and id
user.organization_id is
there exists a row in public.clinic with organization_id equal to and id equal to which is what i passed in from the next app call.
WHAT AM I DOIND WRONG?
Uploading file to storage is failing even tho the rls should pass, i wrote queries to test and they call pass.
Here are the policies:
for INSERT:
call from my next app:
returns user with role authenticated and id
user.organization_id is
there exists a row in public.clinic with organization_id equal to and id equal to which is what i passed in from the next app call.
WHAT AM I DOIND WRONG?