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.
This is touching off of the bug reported in issue #1127722: Moderators may not see the most recent edit before publishing.
It would be useful to have an optional "strict permissions" mode to restrict editing of the current draft by certain users depending on the current moderation state. For example, if an author creates a new draft and sets it to "Needs Review," there should be a way to block the author from editing it further while it is being reviewed, unless the moderator bounces it back to "Draft."
Comments
Comment #1
Cyclodex CreditAttribution: Cyclodex commentedsubscribing for this
I came to the same problem, because I wanted to test Scheduler Module
Here I want to share my Idea about including scheduled stuff, regarding to that option:
Like the statement above from muriqui it would be nice to add such an option.
For me it has not to be a blocking, perhaps it will also help to just let the author create a new draft, and not edit the current one. This behaviour could also help if you wan to allow the moderator to set a revision for publishing in the future...
But even you will leave the automatic schedule part, and would set that by hand:
So this were just my thoughts, I know that this would relate more to the #1127722: Moderators may not see the most recent edit before publishing task... But for me it seems also a bit related to this stuff here.
Comment #2
stevectorMuriqui, what kind of system/UI do you have in mind for defining such controls?
Comment #3
stevectorComment #4
muriqui CreditAttribution: muriqui commentedI was afraid you were going to ask me that, Steve. :) I haven't had a chance to write a patch for this to get the details worked out, but my first thought is that this could just be an optional boolean variable setting, i.e. "Prevent users from editing drafts that they cannot moderate" (though there's probably a better way to phrase that). This could either be a single checkbox on the WBM config page, or else a hidden setting like workbench_moderation_per_node_type.
For implementation, I'm thinking that just a simple conditional in workbench_moderation_node_access() would do the trick... if the option is enabled AND op is 'update' AND workbench_moderation_states_next() returns empty, then return NODE_ACCESS_DENY... maybe?
Comment #5
westbywest CreditAttribution: westbywest commentedI am curious about progress on this issue. I'm looking to block a role's ability to add ANY new drafts (aka revisions) once that node has been put unto the published state.
Comment #6
Jansel CreditAttribution: Jansel commentedHow to create a new state, for example: drafts, Needs Review, publish and ready
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedI'm subscribe for this feature...
Any news ?
Comment #8
siefca CreditAttribution: siefca commentedPermissions (similar to tabs) could solve this problem. Then we could have:
* - editing (own or other's) content will of course require additional permissions to that content
Comment #9
siefca CreditAttribution: siefca commentedChanged priority to major since many users wants it and it seems easy to implement (imvho).
Comment #10
vchen CreditAttribution: vchen commentedWould LOVE this! Been trying to find all sorts of workaround for this effect...trying Rules, Content Locking
Hope this is implemented soon!
Comment #11
MrAlex CreditAttribution: MrAlex commentedI am also subscribing because I want to be able to prevent users in the Author role from being able to edit published content or content that is under review - it defeats the purpose of a workflow to allow it to be ignored. For government departments / enterprise, it's a real concern.
I like Muriqui's idea above about a simple setting to "Prevent users from editing content that's in a state they can not moderate" - simple in concept and it makes sense.
Comment #12
gabriel.achille CreditAttribution: gabriel.achille as a volunteer commentedIt is an old ticket but for the record: there is a workbench_moderation based module that provides this feature now:
Workbench Moderation State Access
Comment #13
delacosta456 CreditAttribution: delacosta456 commentedhi thread ..
Trully Workbench Moderation State Access may be helpful as said @gabriel.achille but for have testing both i think Workbench Moderation State Permission go far in permission feature