How to arbitrate priorities between TAC_Lite and Workflow_Access grants?

doc2@drupalfr.org - October 19, 2008 - 17:18
Project:Taxonomy Access Control Lite
Version:5.x-1.3
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

Greetings

We're on a drupal 5 install and we're struggling to find a way to get TAC_Lite and Workflow_Access working together.

Currently, TAC_Lite bypasses the workflow_access restrictions, while we'd like it to operate afterwards and grant refined access thereafter.

Let's say, users have access to workflow states like they would access to a building's floor, but they couldn't enter any room without it's term access grant (which can be accumulated).

In other terms, we'd like to arbitrate priorities between those access modules. Workflow first, then TAC_Lite. No AND, no OR. Any idea on how to achieve this?

BTW, we're working on it, but time's almost up... And we're aware of those topics:

Great great job anyways (love the ressource-efficient+user-usability care)! Best regards,

Arsène & Ali

#1

Dave Cohen - October 19, 2008 - 20:22
Status:active» won't fix

Give this patch a +1: http://drupal.org/node/309007, because its goal is to make this sort of thing possible.

It's a simple patch, so you could make the equivalent core patch for Drupal 5, then write your own alter hook to tweak your grants with your custom logic.

Without that patch there's no good way to accomplish this.

#2

doc2@drupalfr.org - October 20, 2008 - 11:11

Done.

BTW, I think the issue #309007: Add drupal_alter() after hook_node_access_records() your pointing out is a revival of an old drupal concern (since 4.x), as witnesses the old Node Access Arbitrator module from MerlinOfChaos.

I was considering to port na_arbitrator.module's code but actually your current suggestion to rather backport from a more recent development would probably better fufill code sustainability concerns...

#3

arbel - March 1, 2009 - 06:36

any luck with this, I have same situation, I have nodes with two different work flow status, and I need to allow access to the nodes to user who have the same taxonomy term as the node and are allowed to view the current status.

currently the workflow access rules are trumping the tac lite rules.

Idan

#4

Dave Cohen - March 1, 2009 - 16:16

arbel, You can't revive these old threads with "won't fix" status. read the earlier comments, especially #1.

#5

adshill - May 23, 2009 - 07:08

arbel, I believe this is that you need : http://drupal.org/project/module_grants

 
 

Drupal is a registered trademark of Dries Buytaert.