Files
weeding/supabase/migrations/20251230_fix_auth_logs_policy.sql

22 lines
505 B
SQL

-- Allow anonymous and authenticated users to insert logs
-- This ensures logging works even if Admin Client (Service Role) fails
create policy "Enable insert for all users"
on public.auth_logs
for insert
with check (true);
create policy "Enable insert for all users"
on public.rate_limits
for insert
with check (true);
create policy "Enable update for all users"
on public.rate_limits
for update
using (true);
create policy "Enable select for all users"
on public.rate_limits
for select
using (true);