mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 04:51:11 -05:00
8 lines
307 B
SQL
8 lines
307 B
SQL
-- 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()); |