Closed (fixed)
Project:
Content Access
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 May 2009 at 19:38 UTC
Updated:
14 Aug 2009 at 09:20 UTC
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
avpadernoI 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!