- Issue created by @timwood
Similar to #500432: Allow access to view unpublished revisions (and revision tab) β but for Drupal 8+. Let a role allowed to see a certain content type unpublished nodes along with the ability to use various configured workflow transitions and the "view the latest version" permission to actually see/access the latest non-published version. This "View the latest version" permission says: 'Requires the "View any unpublished content" or "View own unpublished content" permission"', but when using the view_unpublished module, a site is typically not using either of these required permissions. Currently, adding the "[content type]: View revisions" permission with the appropriate combo of other permission does allow the user to access the "Revisions" tab (node/[nid]/revisions) and individual revisions (node/[nid]/revisions/[revision_id]/view), but the user still cannot see the "Latest Version" tab (node/[nid]/latest).
Enable Drupal core content_moderation & workflows modules along with view_unpublished. Add a simple workflow with two states and transitions for the built in "article" content type. Configure a role with the permission to use the workflow transition, the "view the latest version" and the "Article: View any unpublished content" permissions. Give the role to a user. Add and publish content and then try to create a new version in the non-published workflow state.
Make the view_unpublished module work with the "View the latest version" permission.
Active
1.0
Code