For some reason all anonymous users can view unpublished content. Using devel node access I can see it's gnode that is granting the permission. The anonymous role doesn't have bypass node access enabled and I can't see any other option within group to allow anon users to override node access permissions.
Debugging using xdebug I can see that it hits gnode_node_access() with the create $op every time I access the page as anon. It then exits with NODE_ACCESS_IGNORE since none of the checks match.
I'm not familiar with this module so I'm not sure where to look to fix this issue so appreciate any guidance.
Comment | File | Size | Author |
---|---|---|---|
#3 | group-2784221-3.patch | 4.97 KB | kristiaanvandeneynde |
#2 | group-unpublishedstatus-2784221-2.patch | 1.07 KB | mikebell_ |
Comments
Comment #2
mikebell_ CreditAttribution: mikebell_ at Convivio commentedHere is a patch which fixes this. Thanks for the help Kristiaan
Comment #3
kristiaanvandeneyndeThis is more along the lines of what we discussed.
Comment #4
mikebell_ CreditAttribution: mikebell_ at Convivio commentedThanks for the updated patch, tested on my local dev site and works fine.
Comment #5
harivenuvHi,
Thanks for the patch (group-2784221-3.patch). Tested in my local and work fine.
Comment #7
kristiaanvandeneynde