Closed (fixed)
Project:
Nodeaccess
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
18 Sep 2008 at 21:23 UTC
Updated:
21 Mar 2009 at 23:50 UTC
Jump to comment: Most recent
I found this bug because I am not using role-based node access grants. Despite the fact that no roles had been enabled for access grants, the roles table would still be drawn. Only the table header appears - 'Role | Edit', in my case. The problem was here, in nodeaccess.module on line 474:
if (count($roles) > 0) {
This would always return TRUE, regardless of whether and roles had been enabled. I replaced it with:
if (array_search(1,$allowed_roles)) {
where $allowed_roles is an array containing the values from the nodeaccess settings form (line 469).
Comments
Comment #1
Anonymous (not verified) commentedfixed, will publish development release soon