Closed (fixed)
Project:
node privacy byrole
Version:
6.x-1.5
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
22 Sep 2010 at 20:35 UTC
Updated:
10 Jan 2011 at 04:17 UTC
Jump to comment: Most recent file
Comments
Comment #1
deekayen commentedI haven't run the patch, but I'm pretty sure those need to actually be integers returned, not booleans.
Comment #2
AlexisWilke commentedIt's the same thing in PHP... FALSE = 0 and TRUE = 1
But that way the 'view' will be fixed too. 8-)
There is the original:
Thank you.
Alexis
Comment #3
AlexisWilke commentedComment #4
deekayen commentedI applied this to DRUPAL-6--1. When I went to apply it to HEAD, that was the identical code, minus a difference of extra parenthesis.
Comment #6
lars toomre commentedI just stumbled across this issue this weekend running version 6.x-1.5 and was glad to see that that a solution already was present in the head version of the module. Two questions...
1) When will the head version be rolled out as a new stable version? We generally are loathe to depend on development versions for such a key module as setting node access permissions. Instead of relying on development code, we have manually patched our local version for this issue.
2) As we were working through this issue, we are now wondering whether the $node->node_privacy_byrole['author'] is used. Certainly for nodes that a user has created and hence can view and delete, there is no ['author'] array in our debugging reports. Hence, it appears that the first $grants record for realm 'node_privacy_byrole_user' will always return FALSE values for the view, edit and delete permissions. Is this really the way the code was meant to be written (even though then then appears to be super ceded by the 'node_privacy_byrole_role' role records that follow)?
Cheers!!