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)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | acl.patch | 829 bytes | robertgarrigos |
| acl_install.patch | 738 bytes | robertgarrigos | |
| acl.patch | 853 bytes | robertgarrigos |
Comments
Comment #1
robertgarrigos commentedI forgot a var_dump() in my latest acl patch. this should be ok.
Comment #2
salvisThis 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...
Comment #3
robertgarrigos commentedThanks for letting me know. yep, you are right about the default parameter. forgot about it :-(
Comment #4
psiegel commentedHello,
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
Comment #5
salvisNo, just get the 5.x-1.x-dev version, if you need this feature.