-- Fix 1: Add SECURITY DEFINER to is_tenant_manager() so it runs as function owner -- (bypasses RLS) instead of as the calling user. -- Fix 2: users_select_policy có inline subquery ON tenant_members ...
-- Fix infinite recursion: room_members policy was querying room_members again. -- Use a SECURITY DEFINER function so the membership check bypasses RLS. create or replace function ...
Sign up for the Surge, the newsletter that covers the most important political nonsense of the week, delivered to your inbox every Saturday. Welcome to this week’s ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results