mathewcst
07/24/2022, 1:52 AMNeedle
07/24/2022, 1:52 AMmathewcst
07/24/2022, 12:57 PMOlyno
07/24/2022, 12:59 PMmathewcst
07/24/2022, 1:02 PMprofiles table has user_id and spaces (which is an array of space_id)
my spaces table has a users column (which is an array of user_id)mathewcst
07/24/2022, 1:04 PMprofiles RLS
exists (
select id from space
where profiles.spaces = ANY(space.id)
)Olyno
07/24/2022, 1:04 PMOlyno
07/24/2022, 1:04 PMmathewcst
07/24/2022, 1:04 PMmathewcst
07/24/2022, 1:10 PMmathewcst
07/24/2022, 1:10 PMNeedle
07/24/2022, 9:56 PM