Compatibility with core Content Moderation & Workflow

Created on 19 March 2024, 9 months ago
Updated 4 June 2024, 7 months ago

Problem/Motivation

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

Steps to reproduce

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.

Proposed resolution

Make the view_unpublished module work with the "View the latest version" permission.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States timwood Rockville, Maryland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024