I'm looking for a way to restrict an M2M collections according to the following rules:
- Customers can only delete, edit or view their own projects
- Professionals can only view projects assigned to them
Here's my schema:
And here are my permissions:
With that configuration professionals can see all projects, but I need to restrict them to their owns, what is the best way to do it with permissions?.
Right now I'm using this call:
http://directus.local/_/items/projects?filter[professional][eq]=6