22 lines
505 B
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);
|