From 71dbad595dc582a6dbf483964d4690b9aa8ee93a Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 00:34:35 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- .../20260417003432_729292fe-4c50-4fa5-a442-fcdf2f773bac.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 supabase/migrations/20260417003432_729292fe-4c50-4fa5-a442-fcdf2f773bac.sql 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