Add INSERT RLS policy for Realtime

This commit is contained in:
gpt-engineer-app[bot]
2025-10-03 18:26:04 +00:00
parent fca2f77342
commit fa582218b3

View File

@@ -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());