How to restrict access based on many-to-many relationship

I'd like to restrict access to rows in a table based on there being a many-to-many relationship between
User
and Projects (stored in Members). I can't seem to figure it out, any ideas?
Was this page helpful?