Posted by LuckyOne on August 5, 2009 at 5:57pm
Jump to:
| Project: | Nodeaccess |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
Hi,
We use Organic Groups access control on our site. Some time ago, we realized the need for "per-user per-node" ACL, in addition to OG. Typical use case is to allow temporary view/edit operation for protected node for one or two people, not included in a current OG group. We evaluated Nodeaccess module, but its default behavior should be a bit different in our case. We required no access control at all (NULL return), if there are no Nodeaccess grants defined, so "public" OG node stays "public" ("all" realm is created by node module). So, I've made a patch to allow OG-compatible behavior (attached) - there's one extra checkbox in Nodeaccess settings to allow "return NULL".
Thanks,
Dmitry
| Attachment | Size |
|---|---|
| no-default-acl.patch | 2.57 KB |
Comments
#1
This is a one off use case and not something I'd globally support as it's too problematic. Access control modules, per the API, should return grants and not null and this patch would break any site which is not using more than one access control module, not to mention potentially cause undesired behavior even if there are more than one access control modules.