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?

CommentFileSizeAuthor
permission_summary.png6.96 KBNitebreed
transitions.png19.23 KBNitebreed
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

johnv’s picture

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

Nitebreed’s picture

Ok 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?

johnv’s picture

Check the file workflow.api.php. You'll find numerous options to modify the form and the list of options.

johnv’s picture

Status: Active » Closed (works as designed)