Supabase - RLS Policies Issues

When I enabled RLS on profiles, it started enforcing access rules, which is expected. But the problem was that my admin user "Admins can view all profiles" policy referenced profiles inside itself, which caused an infinite recursion issue.

If someone could please help me. Thanks!
Screenshot_2025-02-02_185419.png
Was this page helpful?