Fix RLS policy for deletion

This commit is contained in:
gpt-engineer-app[bot]
2025-09-29 02:24:36 +00:00
parent 8e35ea90d6
commit fb29398eb4
2 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
-- Add DELETE policy for moderators on content_submissions table
CREATE POLICY "Moderators can delete content submissions"
ON public.content_submissions
FOR DELETE
USING (is_moderator(auth.uid()));