Implementing revisions with a workflow
Hi everybody, I've been trying to make workflows and revisions play nicely together for some time now, and came across http://drupal.org/node/408052 (Revisioning with state-based content access control) which seemed to do exactly what I was looking for.
I'd like a very simple workflow which is mostly accomplished by just the workflow module -- author creates content and submits for review, editor reviews content and either returns to draft state with comments, or promotes to live state. The key here is that I'd like authors to be able to edit the live content, but not be able to save it immediately; those new edits should create a new revision and be pushed back through that workflow to be approved before becoming the active revision.
MOSTLY everything actually works; but I'm having a problem with the "edit revision" permission. According to the steps outlined in the document, only authors should have the ability to edit revisions when the content is in the "draft" state, and only editors should have the ability to edit revisions when it's in the "review" state; these permissions are set in the workflow itself, as to which roles can do what with content in which states. However, the default Drupal permissions seem to be overriding this despite having Module Grants installed. If I have the "edit revisions" box checked for a role, it can edit revisions regardless of workflow state. Conversely, if it is unchecked, that role never has permissions to edit revisions.
If anybody else has successfully done this, or wouldn't mind looking at it, I'd be very grateful. It's so close, but this roadblock is unfortunately a showstopper, and isn't discussed at all in the tutorial.
Thanks in advance,
Seth

use workflow access controls
try turning off the "edit revisions" permission and then edit the workflow and use the Access control section of the form to set which roles can edit posts in specific workflow states. note step 8 on http://drupal.org/node/408052
--
bryan stalcup
blackboot technology
http://blackboot.biz
Hi tecto, thanks for your
Hi tecto, thanks for your response!
Unfortunately, I've tried that, and when I do it doesn't seem to actually affect things. Regardless of the workflow access controls I set, the role seems to either be granted or denied permission to create a new revision based on the Drupal permissions checkbox. I do have Module Grants installed, but the override doesn't seem to be functioning properly. Any other thoughts?
I seem to have the exact same problem as you do.
In more technical terms, the workflow permissions seem to allow editing the node, thus creating a new revision (in draft). However there is no way to edit that draft furter, unless "edit revisions" is checked in global permissions. Then the user can edit ANY revision, which defeats the purpose.
A additional (and very annoying) side effect is that you can still edit the node, but always start from the published revision, so you end up with MULTIPE draft revisions of the same node, which makes absolutely no sense in most workflow contexts.