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