Skip to content

Commit a30de3c

Browse files
Yushin-Lclaude
andcommitted
Fix RLS policy: allow publishing by adding 'published' to WITH CHECK
The WITH CHECK clause was missing 'published', causing publish action to be blocked by row-level security. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1ea8a70 commit a30de3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

supabase/migrations/006_post_drafts_soft_delete.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ CREATE POLICY "Authors can update own drafts"
2525
)
2626
WITH CHECK (
2727
author_id = auth.uid()
28-
AND status IN ('draft', 'pending', 'deleted')
28+
AND status IN ('draft', 'pending', 'published', 'deleted')
2929
);

0 commit comments

Comments
 (0)