I would like to allow a user to edit some node that have the same taxonomy term.
I created a taxonomy for enterprise and I referenced it in a field of user profile. I used this taxonomy in a content type too.
I wonder if it’s possible to allow users to edit only nodes with the same taxonomy term, as in this example:
-
Users :
- Alex – enterprise : AAA
- Paul – enterprise : PPP
-
Nodes :
1
– enterprise : AAA2
– enterprise : AAA3
– enterprise : PPP
In this example:
- Alex can edit node
1
and2
only, and see all. - Paul can edit node
3
only, see all.
I tested taxonomy access control but I have to create a role for each enterprise to edit node with same term enterprise. But I have more than 100 enterprises.