diff --git a/supabase/migrations/20260417003432_729292fe-4c50-4fa5-a442-fcdf2f773bac.sql b/supabase/migrations/20260417003432_729292fe-4c50-4fa5-a442-fcdf2f773bac.sql new file mode 100644 index 0000000..b7a8bff --- /dev/null +++ b/supabase/migrations/20260417003432_729292fe-4c50-4fa5-a442-fcdf2f773bac.sql @@ -0,0 +1,5 @@ +DROP POLICY IF EXISTS profiles_update_admin ON public.profiles; +CREATE POLICY profiles_update_admin ON public.profiles + FOR UPDATE TO authenticated + USING (public.is_admin(auth.uid())) + WITH CHECK (public.is_admin(auth.uid())); \ No newline at end of file