mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 01:31:19 -05:00
Refactor admin settings access
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
-- Update admin_settings RLS policy to only allow superusers
|
||||
DROP POLICY IF EXISTS "Admins can manage settings" ON public.admin_settings;
|
||||
|
||||
CREATE POLICY "Superusers can manage settings"
|
||||
ON public.admin_settings
|
||||
FOR ALL
|
||||
USING (is_superuser(auth.uid()));
|
||||
Reference in New Issue
Block a user