MementoMori
07/18/2022, 8:21 AMNeedle
07/18/2022, 8:21 AMVinzent
07/18/2022, 8:30 AMsecurity invoker, which means they have the access the function invoker has. But calls over postgrest only have access to the public schema.
You need to make the function security definer. But be caution to verify the request, because it could allow everyone to delete any account.
https://supabase.com/docs/guides/database/functions#security-definer-vs-invokerMementoMori
07/18/2022, 9:20 AMNeedle
07/18/2022, 9:20 AM