From 6f1544309ed362bcd29a0e4c444f9ea1c31a0b40 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Tue, 30 Sep 2025 18:35:07 +0000 Subject: [PATCH] Refactor: Enable RLS for content submissions --- ...83452_6626976f-214b-4eee-a50c-f6c61be19e32.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 supabase/migrations/20250930183452_6626976f-214b-4eee-a50c-f6c61be19e32.sql diff --git a/supabase/migrations/20250930183452_6626976f-214b-4eee-a50c-f6c61be19e32.sql b/supabase/migrations/20250930183452_6626976f-214b-4eee-a50c-f6c61be19e32.sql new file mode 100644 index 00000000..df4f9fd0 --- /dev/null +++ b/supabase/migrations/20250930183452_6626976f-214b-4eee-a50c-f6c61be19e32.sql @@ -0,0 +1,15 @@ +-- The content_submissions table already has RLS policies defined +-- We just need to ensure RLS is enabled (it should already be enabled from previous migrations) +-- This migration verifies RLS is enabled + +-- Verify RLS is enabled on content_submissions +ALTER TABLE public.content_submissions ENABLE ROW LEVEL SECURITY; + +-- Verify all existing RLS policies are in place +-- (They should already exist from previous migrations, but we document them here) + +-- Users can create submissions (already exists) +-- Users can view their own submissions (already exists) +-- Moderators can view all content submissions (already exists) +-- Moderators can update content submissions (already exists) +-- Moderators can delete content submissions (already exists) \ No newline at end of file