Closed (fixed)
Project:
Nodeaccess
Version:
7.x-1.4
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Jun 2015 at 15:11 UTC
Updated:
11 Aug 2015 at 20:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
trigdog commentedHey @joelpittet,
I have been doing some testing with the dev of this module and wanted to make sure that this issue is fixed before moving forward with using it. I do not know a lot about node_access in Drupal but have been using this as a learning experience :)
I have tried a couple tests and it looks like if I sent a node to have anonymous users to have the view grant of a node through nodeaccess it works just fine for the published node and anonymous users can view it. When I unpublish the node I see that all records of that node in the node_access table are removed because of the following code in nodeaccess.module:
After this, I get an "access denied" when trying to view the unpublished node from an anonymous user. If I am correct, if there are no records in the node_access table for the node then it will just use the user_access privileges for the node type.
Can you provide steps to reproduce? Maybe I can help debug :)
Comment #2
joelpittetSorry for the delay, I do need to provide some steps to reproduce.
All I can remember:
Comment #3
joelpittetYeah simpletest.me with just nodeaccess with the steps in #2

Comment #4
willzyx commented@joelpittet this issue should be solved in #2228713: unpublished nodes are visible and commited in #2037899: Expose operations as API. Make sure to use the latest dev version of nodeaccess
Comment #5
joelpittet@willzyx oh you are right, sorry I thought I was testing on -dev...
Leaving open just setting the version incase someone else runs into this.
A bit worried to upgrade because I got this message while testing the 7.x, after unpublishing and publishing a couple times.
I'll open a new issue for that.
Comment #6
joelpittetThis issue may be the fix for that one... #2427345: Database Error - nodeaccess_author duplicate entry Going to try it.
Comment #7
joelpittetClosing to keep your queue clean:)
Also ran into an related issue with unpublished nodes that I'll see if I can create a test case for.
Comment #8
joelpittetHere's the follow-up #2541588: Unpublished Nodes grants checkboxes won't save.