How to publish a revision with a rule but without the "publish revision" permission is checked ?

Events happening in the community are now at Drupal community events on www.drupal.org.
ibozo's picture

Hi,

I'm trying to explain my problem.

I configured a workflow with several states, users and activate the revisioning module.
I don't used triggers, only the rules module

Ok
In my case, a simple user can save some contents and an email is sended to another user to validate them.
But, for some minor updates content, I want this user can publish directly theses update on the site (bypassing the workflow)

For that, I added a checkbox (publish directly) in my content type (a CCK field -> field_pub_directe) and in a rule to check and publish the content.

But I don't want that the "publish revision" checkbox in the permission module is checked, because in that case, the user can publish anyone revisions even if he checked or not checked the "publish directly" checkbox.

So, if the "publish revision" checkbox in the permission module is not checked, I would like create a rule to publish the most recent revision.

I tested already with these conditions and actions:

Event:Pending revision has been published

Conditions: (ok it works because the email is well-sended)
User has role(s) - EXEC
AND
Check if content workflow state is En Live
AND
Target revision of operation's field 'field_pub_directe' has value
AND
Target revision of operation is Book page EXEC or Formations EXEC

Actions:
Send email to a user
Publish the most recent pending revision

In this last action, I tried already "Publish the most recent pending revision" on Node or on Revisionning (it's the same label) with target revision of operation or current revision of target content. So there are 4 cases. But its impossible to publish directly the last revision anyway. The status of my revision is "in draft/pending publication"

How to change this status in "current revision (published)" without the "publish revision" checkbox in the permission module is checked ?

Thanks a lot for your comments!

My config:
Drupal: 6.22
Rules: 6.x-1.4
Revisioning: 6.x-3.11
Workflow 6.x-1.5
->See an example of my rule

AttachmentSize
rules-bug.html6.54 KB

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: