Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
See attached screenshots.
The role 'webspecialist' shouldn't have permission to change a node's workflow from live to live, but I don't see where I can change this. Are current state -> current state transitions always allowed? Or is there someway I can disable this?
Comment | File | Size | Author |
---|---|---|---|
permission_summary.png | 6.96 KB | Nitebreed | |
transitions.png | 19.23 KB | Nitebreed |
Comments
Comment #1
johnvThis is 'working as designed'.
You need this transition, in case you save a node without changing the state.
You can set the state in one of the following ways:
- with a widget, when editing a node/entity
- with a widget, when viewing a node (directly or via some Views display/Entity View mode)
- via the Workflow history tab.
In the first case, you definitely need this same-state-transition;
In the second/third case, removing this would be confusing IMO. YOu can add comments without changing the state.
In older version (e.g., 1.2 ) the same-state-transition was excluded from the screen, but enabled in the software. To be able to give a transition a label, the same-state-transition is added in the UI.
If the user save without changing anything, the system will not save any chagnes. If you save with same state but with comments, a comment is added.
Comment #2
NitebreedOk I get it. But is there some way I can force this for this role, or should I just do a form_alter and remove any options in the node workflow field that I don't want enabled?
Comment #3
johnvCheck the file workflow.api.php. You'll find numerous options to modify the form and the list of options.
Comment #4
johnv