eoin
04/15/2022, 12:28 AMuid
is checked within an array or jsonb cell for their RLS policy?
What I want: An RLS policy which checks if auth.uid()
is a value within a players
array or jsonb column cell to determine if they should be able to see the /game/uuid
page.Needle
04/15/2022, 12:28 AM/title
command!
We have solved your problem?
Click the button below to archive it.Needle
04/15/2022, 12:29 AMNeedle
04/15/2022, 12:29 AMgaryaustin
04/15/2022, 12:38 AMcreate policy "Logged in users can see the posts if they belong to the post 'audience'."
on posts
for select
using (
auth.uid() = any (posts.audience)
);
Needle
04/15/2022, 12:39 AMeoin
04/15/2022, 12:57 AMuuid
values and my SQL expression on the policy was incorrect.Needle
04/15/2022, 12:59 AM