The core function node_access_acquire_grants() makes use of grants priority which might help very much when you have multiple access control modules. Some modules, like control_access, makes use of this priority but acl doesn't, which gives you some strange behaviors when using control_access with priority set AND acl. The solution is having acl module be able to set the priority of grants. This is a simple patch to achieve this. (The install patch has a new update you need to run at update.php)

CommentFileSizeAuthor
#1 acl.patch829 bytesrobertgarrigos
acl_install.patch738 bytesrobertgarrigos
acl.patch853 bytesrobertgarrigos

Comments

robertgarrigos’s picture

StatusFileSize
new829 bytes

I forgot a var_dump() in my latest acl patch. this should be ok.

salvis’s picture

Status: Needs review » Closed (duplicate)

This is already implemented in the -dev version.

#135687: configure priority

P.S. Your patch (not supplying a default parameter value) would break all other modules that use ACL...

robertgarrigos’s picture

Thanks for letting me know. yep, you are right about the default parameter. forgot about it :-(

psiegel’s picture

Status: Closed (duplicate) » Active

Hello,

I am a bit lost here, I have ACL 1.6 installed. Do I need to install this patch and is the patch OK?

Thanks,
Pascal

salvis’s picture

Status: Active » Closed (duplicate)

No, just get the 5.x-1.x-dev version, if you need this feature.