Hi Guys,
We have a situation with two content types "Course" and "Course Instance" based on a "Node Reference" field...
I have enabled two permissions "View any unpublished Course" and "View any unpublished Course Instance" for a certain Role...
When I unpublished a specific "Course Instance"... and tried to access it there was no way to get access to the node... because the foreach on line 76 was returning the permissions before getting to the "Course Instance" content type... it was returning only the node access to "Courses"... and not getting to the second content type that the users also have permission to see the unpublished content...
The solution that I see is removing line 79 and allow the foreach loop through all the content types...
| Comment | File | Size | Author |
|---|---|---|---|
| view_unpublished.module.patch | 449 bytes | lemuelsantos |
Comments
Comment #1
longwaveThat line was already removed in this commit
http://drupalcode.org/project/view_unpublished.git/commitdiff/699da4c
Comment #2
longwave#1358816: Doesn't give access to unpublished node if role has more than 1 'view any unpublished type content' permission