فهرست منبع

Lovable update

Lovable tool use: Approved.

context: 6951EAA2-1264-4A1A-A86D-817E462202C7

tool_name:Modify database

X-Lovable-Edit-ID: edt-8d75e97f-7c28-4bdb-b1c8-362aa13ed17e
gpt-engineer-app[bot] 16 ساعت پیش
والد
کامیت
d4e5c90655
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);