Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using the rules action add access to user, the routine fetches (creates or loads) the acl and adds the user but doesn't add the node. The result is that the ACL doesn't apply to the node. Although the comments state:
// A following node_save() updates the grants for us.
I assume this refers node_access getting rebuilt?
Attached patch adds the same acl_node_add_acl call as the admin form uses.
Comment | File | Size | Author |
---|---|---|---|
content_access-rules-acl-node-fix.patch | 598 bytes | fearlsgroove | |
Comments
Comment #1
greg.harveyWorks for me. =)
Comment #2
apadernoI would expect the Rules action to call
acl_node_add_acl()
as the code for the settings page already does.Comment #3
fagoYou are right, committed, thanks!