"Add/Revoke access for user" Rules action doesn't add the node to ACL
fearlsgroove - May 25, 2009 - 19:38
| Project: | Content Access |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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.
| Attachment | Size |
|---|---|
| content_access-rules-acl-node-fix.patch | 598 bytes |

#1
Works for me. =)
#2
I would expect the Rules action to call
acl_node_add_acl()as the code for the settings page already does.#3
You are right, committed, thanks!
#4
Automatically closed -- issue fixed for 2 weeks with no activity.