5
Allow accessing message payload for realtime in RLS policies
Source: supabase/supabase#28218 · opened by @ferhatwi
Listening presence of users in a room can be done by this:
But this way, we can't be sure that USER_ID is indeed the id of the user that joins the presence channel, since we can't check if the value of the user key of payload equals auth.uid() in Row Level Security's insert policies.
But this way, we can't be sure that USER_ID is indeed the id of the user that joins the presence channel, since we can't check if the value of the user key of payload equals auth.uid() in Row Level Security's insert policies.
No pledges yet. Be the first to back this.
Comments
Similar requests
Default RLS Policies.
3 votes · 0 comments
Add Feature to Test + Debug Row Level Security Policies
47 votes · 0 comments
Make Changes to the DB through a Realtime extension
2 votes · 0 comments
Disable RLS policies
1 vote · 0 comments
Better protection against failing to protect tables with RLS
1 vote · 0 comments
No comments yet.