Hi, I have a vocabulary to which I add terms every week and I need a way to exclude some roles from the access limitations set by TAC lite; in other words, I need to grant some roles with full access to the growing taxonomy which is controlled by TAC lite. Any suggestion would be appreciated.

Comments

Dave Cohen’s picture

Read up on access control on api.drupal.org. You might be able to implement a hook to do exactly what you want.

Maybe its easier to create a new taxonomy "privacy" with terms like "everyone", "administrators", etc... Tac_lite can be configured to work with multiple taxonomies.

thedavidmeister’s picture

Status: Active » Needs review

From the project page:

Bear in mind that, like all modules which use Drupal's built-in node_access features, this module does not prevent users from viewing/editing nodes which Drupal's permission allow them to view/edit. To use, configure Drupal to not grant the permission, then configure tac_lite to grant via the node_access table.

Perhaps I misunderstand the OP's intention, but would it not be possible (and easiest) to simply grant the roles access to view/edit nodes through Drupal core? TACL can't remove access from a user once it has been granted.

Dave Cohen’s picture

Status: Needs review » Closed (duplicate)

I'm going to close this as a dupe, even though I don't have the other issue ID handy. There are several similar requests in the queue.

Granting access to nodes via drupal core permissions can work, but it's problematic. The view permission does not lend itself to this, because imagine a view with hundreds of nodes. Drupal does not call node_access() for each one. Instead the query needs to return only nodes the user is allowed to view. That means a join with node_access table.