This might be a unique situation but here goes.

I have domain access installed and content is assigned to particular domains.

One of the domains is an "intranet" domain and for the access rights within that domain we use TAC.

The other domains are corporate websites and for the access rights there we use Revisioning/Workflow Access and thus Module Grants.

The problem is that we have content types that are controlled with TAC and other content types that are controlled by Workflow Access.

The Module Grants module has the possibility to AND/OR the node access rules.

so i can either have Domain Access AND TAC AND Workflow Access

or i can have Domain Access OR TAC OR Workflow Access

but what i want is: Domain Access AND (TAC OR Workflow Access)

so i created a small patch in module grants to allow this.

I'm not sure if this is useful for anyone else... or to include in the module.

CommentFileSizeAuthor
module_grants.module.patch1006 bytesJohnny vd Laar

Comments

rdeboer’s picture

Thanks for the patch, Johnny!
I knew someone sooner or later was going to ask for a combined AND-OR, rather than either all ANDs or all ORs...
To be truly flexible and usable in more contexts I guess it would be nice to have a UI associated with this, rather than having Domain Access hard-coded into it, but great that you started the ball rolling.
Rik

Johnny vd Laar’s picture

yes i was thinking about putting it behind a checkbox

what would be even more cool is that the module tracks which node access modules are installed and that it gives you an interface to create the AND/OR logic. but that might be a bit too advanced.

also domain access comes with a patch to core. i'm wondering if that patch is still needed when you use module grants? perhaps the domain access developer can fill us in on that.

mxt’s picture

Subscribing.

So, has this patch been included in module grants?

I also think that an UI like Johnny describes would be absolutely useful

Thank you!

rdeboer’s picture

@MXT, #3
No this patch has not been included in Module Grants, yet. I am reluctant to do so, because, while it is a great patch, it is hard-coded specifically for the Domain Access case as described by Johnny.
I agree a nice UI for this would be lovely and welcome any patches.

rdeboer’s picture

Status: Active » Needs work
rdeboer’s picture

Status: Needs work » Closed (won't fix)
kishorhase’s picture

Hi Everyone

I have installed drupal6.25, Domain Access, Domain Advance, Revisioning with Workflow and Grant modules.
I assign node to the perticular domain, but it will show access denied for all domain.
If I uninstall the revision and grand modules, the node assign is working fine but the node workflow is not working properly.

Please help me...