diff --git a/infrastructure/migrations/001_schema.sql b/infrastructure/migrations/001_schema.sql index 84867e1..a8a7d8c 100644 --- a/infrastructure/migrations/001_schema.sql +++ b/infrastructure/migrations/001_schema.sql @@ -207,10 +207,6 @@ CREATE POLICY "posts_select" ON public.posts FOR SELECT USING ( deleted_at IS NULL AND review_status IN ('ok', 'approved') - AND ( - NOT is_anonymous - OR user_id = (select auth.uid()) - ) ); CREATE POLICY "posts_insert" ON public.posts FOR INSERT WITH CHECK ((select auth.uid()) = user_id); diff --git a/infrastructure/migrations/002_perf_linter_fixes.sql b/infrastructure/migrations/002_perf_linter_fixes.sql index 5ecaf20..0d3e76e 100644 --- a/infrastructure/migrations/002_perf_linter_fixes.sql +++ b/infrastructure/migrations/002_perf_linter_fixes.sql @@ -12,10 +12,6 @@ ALTER POLICY posts_select ON public.posts USING ( deleted_at IS NULL AND review_status IN ('ok', 'approved') - AND ( - NOT is_anonymous - OR user_id = (select auth.uid()) - ) ); ALTER POLICY posts_insert ON public.posts