This commit is contained in:
2026-04-18 23:11:35 +02:00
commit f7cfd2a86e
196 changed files with 35538 additions and 0 deletions
@@ -0,0 +1,11 @@
-- ============================================================================
-- Allow admins to UPDATE any profile row. Needed for the admin UI to ban,
-- block-from-inviting, or promote users. `current_user_is_admin()` already
-- exists from the initial schema.
-- ============================================================================
drop policy if exists profiles_update_admin on public.profiles;
create policy profiles_update_admin on public.profiles
for update to authenticated
using (public.current_user_is_admin())
with check (public.current_user_is_admin());