mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 06:51:12 -05:00
7 lines
255 B
SQL
7 lines
255 B
SQL
-- 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())); |