Closed (won't fix)
Project:
Node access user reference
Version:
6.x-2.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2010 at 20:45 UTC
Updated:
30 Apr 2010 at 18:14 UTC
First, this is a very cool module. Thank you for sharing it!
I have a situation where I want to grant specific users either view or edit access to a particular node type. When the node is published, this works great. However if the node is unpublished, both groups get an access denied error. Is this intentional or a bug?
If it's intentional, can you suggest any other modules that might help?
Comments
Comment #1
danielb commentedNo that's not intentional. Just having a glance at how the node_access() function works, I think this might be a limitation of drupal. It's an assumption the drupal developers have made that the 'node access' tables should only be checked when the node is published.
I'm not sure there is anything I can suggest other than to remove
&& $node->statusfrom an 'if condition' in that function, which is core hacking and generally discouraged (because it will revert when upgrading drupal).Comment #2
cindyr commentedI think you're right. I gave up on having it in "unpublished" state, and I'm using this module with the Workflow module, and it appears to be working perfectly so far, haven't finished testing it yet...
Thanks for getting back to me.