Permissions: Participate in workflow doesn't filter after deprecating user_role_names in 8.x-1.6+dev

Created on 29 February 2024, 4 months ago
Updated 18 March 2024, 3 months ago

Problem/Motivation

When selecting which roles can participate in workflow, that is not being followed by transition_roles config screen

Steps to reproduce

Remove all roles from the permission on the WF that has this label:

Participate in workflow
Warning: For better control, uncheck 'Authenticated user', manage permissions per separate role, and re-enable 'Authenticated user'. Role is enabled to create state transitions. (Determines transition-specific permission on the workflow admin page.)

and then go to transition_roles configuration of the WF specific on the above text, and see that all roles are available to be selected and participate on the workflow.

admin/config/workflow/workflow/WF/transition_roles

until now we would get a limited list of roles on transition_roles config that were allowed on permissions.

In fact, even the help text says this:

If not all roles are in the list, please review which roles may 'participate in workflows' on the Permissions page. On that page, uncheck the 'Authenticated user' role temporarily to view the permissions of each separate role.

Proposed resolution

This is introduced in 8.x-1.8, πŸ“Œ user_roles() and user_role_names() are deprecated Fixed

πŸ› Bug report
Status

Fixed

Version

1.7

Component

Code

Created by

πŸ‡΅πŸ‡ΉPortugal jrochate

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

Comments & Activities

Production build 0.69.0 2024