From accdf56a7982ae3444adb927df3335493ee74ee2 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Thu, 23 Jul 2026 00:04:22 +0200 Subject: [PATCH] Remove outdated "self update" policy from `profiles` table schema --- backend/supabase/profiles.sql | 6 ------ 1 file changed, 6 deletions(-) diff --git a/backend/supabase/profiles.sql b/backend/supabase/profiles.sql index 26cb943c..5c9515ab 100644 --- a/backend/supabase/profiles.sql +++ b/backend/supabase/profiles.sql @@ -85,12 +85,6 @@ DROP POLICY IF EXISTS "public read" ON profiles; CREATE POLICY "public read" ON profiles FOR SELECT USING (true); -DROP POLICY IF EXISTS "self update" ON profiles; - -CREATE POLICY "self update" ON profiles - FOR UPDATE - WITH CHECK ((user_id = firebase_uid())); - -- Indexes CREATE INDEX IF NOT EXISTS profiles_user_id_idx ON public.profiles USING btree (user_id);