SupabaseS
Supabase4y ago
tpz

Database Functions - Auth

Hello!

Is it possible to determine if the caller is allowed to bypass RLS?

I created a custom function that checks the updating of the row by using auth.uid(), it is always successful if I am logged in as a normal user.

But when I update the rows using Supabase table editor in the dashboard, I get an error because auth.uid() returns null if I use the table editor.

Thank you
Was this page helpful?