1

Some info about what I'm working on:

  • Nodes: I have a content type that contains user_reference.

  • Taxonomy: I have a vocabulary called cities, which is enabled for all users and contains terms like London, Paris, ...

  • Users: All users are tagged with terms from the cities vocabulary, through the use of a taxonomy reference field added to their profiles.

What I am trying to achieve:

I want to give access to an administrative role to view/edit/delete nodes where the users referenced in these nodes are tagged with a certain term.

Example: I want to add a role called "London Supervisor".

Users who have this role can view/edit/delete any node where the referenced users have the terms London. So I want to give access to an administrative role to view/edit/delete nodes where the users referenced in these nodes are tagged with a certain term.

My question:

Anybody any suggestion about how to implement this?

0

Haven't tried it myself yet, but Taxonomy Access Control looks promissing:

  • Automatically controls access to nodes (based on their taxonomy terms).

  • Configuration page for each user role.

  • Three node access permission types: View, Update, Delete.

0

You should consider using organic groups.

It appears to be more powerful. Moreover it is still being updated, as mentioned on its project page: Actively maintained and Under active development. Unlike taxonomy access control (check its project page on that). However the usage is different from adding terms to users.

You could create nodes belonging to certain group (a group would correspond to a city). So only the group members could edit, and the view access for these nodes would be global.

0

check out this Taxonomy Access Control

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.