diff --git a/supabase/migrations/20251003182550_cf42b6f7-eacc-40f5-a44d-6d2741787670.sql b/supabase/migrations/20251003182550_cf42b6f7-eacc-40f5-a44d-6d2741787670.sql new file mode 100644 index 00000000..1e5808b2 --- /dev/null +++ b/supabase/migrations/20251003182550_cf42b6f7-eacc-40f5-a44d-6d2741787670.sql @@ -0,0 +1,8 @@ +-- Add INSERT RLS policy on realtime.messages for moderators to enable broadcast channels +-- This allows authenticated moderators to send broadcasts on private channels + +CREATE POLICY "Moderators can send broadcasts" +ON "realtime"."messages" +FOR INSERT +TO authenticated +WITH CHECK (check_realtime_access()); \ No newline at end of file