mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 04:31:13 -05:00
Add INSERT RLS policy for Realtime
This commit is contained in:
@@ -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());
|
||||
Reference in New Issue
Block a user