Güvenlik Doğrulaması,Login Logları
This commit is contained in:
21
supabase/migrations/20251230_fix_auth_logs_policy.sql
Normal file
21
supabase/migrations/20251230_fix_auth_logs_policy.sql
Normal file
@@ -0,0 +1,21 @@
|
||||
-- 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);
|
||||
Reference in New Issue
Block a user