Default entity actions displayed when users have no content moderation transition available.

Created on 7 May 2024, 8 months ago
Updated 9 July 2024, 6 months ago

Problem/Motivation

The workflow_buttons_entity_view renders the widget even if there are no transitions available for the user.
In such cases, it typically displays the default actions of the entity (such as Save and Preview).

Steps to reproduce

  • Edit Editorial workflow
  • Add a new state "Review"
  • Add a new transition "Review" ( Draft -> Review )
  • Allow authenticated users to both add new articles and view own unpublished content.
  • Allow authenticated users to use Review transition
  • When an authenticated user creates and views an article node, the "Save" and "Preview" buttons are presented, but they literally do nothing.

Proposed resolution

Stop rendering the field widget if no transition is available for the logged-in user.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India uditrawat

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024