- 🇺🇸United States RichardDavies Portland, Oregon
I just encountered this exact same issue and I'm not sure "works as designed" is technically accurate or that the current behavior is the ideal desired behavior. As the OP explained, a user can view the published node and can create a new draft revision of the node. But when they click Save on the draft revision, they're taken to
/[node_url]/latest
which returns access denied.I completely understand and agree that the 'view own unpublished content' permission shouldn't give you access to all of the unpublished revisions if you didn't author those revisions, but it's currently denying access to an unpublished revision that you just authored! That doesn't make any sense and is confusing to a user to say in essence "Yes, I just let you successfully save a new revision, but sorry, you can't see it now."
Interestingly, the user can actually view their revision by using the Revision tab and clicking on their revision link which points to
/[node_url]/revisions/[revision_id]/view
. So it seems like/latest
should allow you to view the latest revision if you have the 'view own unpublished content' permission and you authored the revision, regardless of whether or not you were the original author of the node. - 🇺🇸United States RichardDavies Portland, Oregon
@SoulReceiver I tried the change you suggested and seems to be working correctly now for me. The user can now view /latest when they authored the latest revision. I'm curious why you stated it didn't seem to be a complete fix or working as expected for you... can you elaborate on the problem you continued to experience after trying your fix?
- Status changed to Active
almost 2 years ago 5:46pm 16 March 2023 - 🇺🇸United States RichardDavies Portland, Oregon
Based on our testing, the OP's suggested code change does indeed resolve this issue and we've been unable to identify any problems or side effects with the change. So I'm attaching a patch file for this fix and reopening this issue because if you can create a revision I feel like you should be able to view that revision.
- 🇮🇳India bhanu951
@RichardDavies as you mentioned you encountered this issue recently I assume its on 10.x core. If not can you update the core version which you faced the issue?