Hello Friends,

I have a quick question. Is there a way to grant update/edit access on a particular node when:

  1. The original creator selects a particular taxonomy term.
  2. That term would ultimately correspond with a user role.
  3. The current user has the same role as the original creator.

For instance, let's say you have a content type where a user selects their location via taxonomy. This drop-down would correspond with a list of roles specific to each location. While anyone can add the content and select their location, we would only want those of the selected location to be able to edit the content, not just the creator.

Original creator has role: Downtown, selects Downtown in the taxonomy. Saves node. Then any user with the same role: Downtown would be able to edit. But we would not want anyone with any other location role to be able to edit it.

I've tried the Taxonomy Access Control but it appears to only limit what options they can select within a taxonomy.

Comments

TR’s picture

Status: Active » Fixed

Rules should not be used for access control. In this case, it seems like what you want is exactly what https://www.drupal.org/project/tac and https://www.drupal.org/project/tac_lite were designed for. If you have problems configuring one of those modules to do what you want, ask for support in the issue queue of that module.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.