2

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

enter image description here

Here's my schema:

enter image description here

And here are my permissions:

enter image description here

enter image description here

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
Mario Rojas
  • 1,313
  • 1
  • 9
  • 15
  • hello @Mario Rojas, did you able to solve problem, i was having similiar case as well and wanted to ask if you already found the solution ? – Hayra Dec 17 '19 at 20:08
  • hi @Hayra, not yet! I'd been using hooks but it's just a workaround – Mario Rojas Dec 19 '19 at 22:59

0 Answers0