mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
fix: update Realtime AuthZ policies in docs/demo (#27863)
This commit is contained in:
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')
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user