gpt-engineer-app[bot] 16 小時之前
父節點
當前提交
8b4e6c37fd
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      supabase/migrations/20260116092107_cfadf729-c302-4893-ba65-a0790bc69eab.sql

+ 8 - 0
supabase/migrations/20260116092107_cfadf729-c302-4893-ba65-a0790bc69eab.sql

@@ -0,0 +1,8 @@
+-- Supprimer l'ancienne politique restrictive (authentifiés uniquement)
+DROP POLICY IF EXISTS "Authenticated users can read articles" ON articles;
+
+-- Créer une nouvelle politique permettant l'accès public en lecture
+CREATE POLICY "Anyone can read articles"
+  ON articles
+  FOR SELECT
+  USING (true);