- Issue created by @yobottehg
When a workflow state is removed from a workflow the user permissions are not updated but should be if a user role had access to that transition.
Add a workflow with 3 states (published, draft and archived) with transitions between them. Grant a user role the permission to use that transitions. Then delete the archived state and transition.
When you now head to the user role permissions page and click save you will be greeted with an exception:
RuntimeException: Adding non-existent permissions to a role is not allowed. The incorrect permissions are "use editorial transition archive". in Drupal\user\Entity\Role->calculateDependencies() (line 207 of core/modules/user/src/Entity/Role.php).
Re-do the user group permissions after save of a workflow.