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...

CommentFileSizeAuthor
view_unpublished.module.patch449 byteslemuelsantos

Comments

longwave’s picture

longwave’s picture