fix: update Realtime AuthZ policies in docs/demo (#27863)

This commit is contained in:
Wen Bo Xie authored and GitHub committed 2024-07-08 18:23:03 -04:00
1 parent 9956f195f5
commit b7d4d64fee
2 files changed
+26 -26

No files matched your search

@@ -112,7 +112,7 @@ USING (
EXISTS (
SELECT 1
FROM public.rooms_users
WHERE user_id = auth.uid()
WHERE user_id = (select auth.uid())
AND room_topic = realtime.topic()
AND realtime.messages.extension in ('broadcast', 'presence')
)
@@ -126,7 +126,7 @@ WITH CHECK (
EXISTS (
SELECT 1
FROM public.rooms_users
WHERE user_id = auth.uid()
WHERE user_id = (select auth.uid())
AND room_topic = realtime.topic()
AND realtime.messages.extension in ('broadcast', 'presence')
)