The issue we came across is that when using Workbench moderation and a new draft is created from an existing published node, and published again, the node would lose anonymous access. Checking in the database for an existing published node would result in:
+-----+-----+-------+------------+--------------+--------------+
| nid | gid | realm | grant_view | grant_update | grant_delete |
+-----+-----+-------+------------+--------------+--------------+
| 53 | 0 | all | 1 | 0 | 0 |
+-----+-----+-------+------------+--------------+--------------+
I edit this node, set to draft, then needs review, then published and it gives me:
+-----+-----+-------------------------------+------------+--------------+--------------+
| nid | gid | realm | grant_view | grant_update | grant_delete |
+-----+-----+-------------------------------+------------+--------------+--------------+
| 53 | 1 | view_unpublished_content | 1 | 0 | 0 |
| 53 | 1 | view_unpublished_page_content | 1 | 0 | 0 |
+-----+-----+-------------------------------+------------+--------------+--------------+
The patch attached resolves this issue for us by checking the node for workbench_moderation.
Comment | File | Size | Author |
---|---|---|---|
#1 | view-unpublished-wb.patch | 904 bytes | tim-e |
view-unpublished-wb.patch | 1.04 KB | tim-e |
Comments
Comment #1
tim-e CreditAttribution: tim-e commentedSorry about that, here is the correct patch.
Comment #2
xtfer CreditAttribution: xtfer commentedIn its current state, this patch allows anonymous users access to the node when its unpublished.
Comment #3
xtfer CreditAttribution: xtfer commentedIve attempted to reproduce this, but I can't do so, I suspect it may be fixed.