Closed (fixed)
Project:
Revision Moderation
Version:
6.x-1.0-alpha2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2009 at 07:11 UTC
Updated:
2 Apr 2010 at 02:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
gleich commentedWell, I have the same problem here.
What I've figured out:
1. First of all, there was no 'revision_moderation_exempt' variable in db (i.e. no such row in 'variable' table). I suppose it should be, since I performed clean install of alpha2. Anyway, setting this checkbox once again manually via UI fixed this problem. Something wrong with install script?
2. Since problem was still persisting, I looked into the code. And it seems like this bug was introduced with following patch, committed to alpha2:
http://drupal.org/node/433608#comment-1556528
There is following condition on line 234:
else if ($node->nid && $node->revision_moderation == 1 && end($args) == 'edit')which doesn't consider the exempt flag. I've changed it to
and it seems to work OK. But it should be checked more thoroughly.
UPD By the way, it would be nice to have separate permission for this purpose, so that users like "trusted" editors could publish their changed without approval, still not having "administer nodes" permission (which is too high). Actually, it'd be better to have 2 permissions:
1. Post without approval (ie auto-publish changes of this user)
2. Approve revisions (ie moderate and publish others' changes)
What do you think about it?
Comment #2
Ela commentedThank you for the info :)
I rolled back to alpha 1 for now, waiting to see how this issue will close...
I agree with the requests, these features would be great!
Comment #3
jbrauer commentedPlease put new feature requests in separate issues.
I'll take a look at the conditional after a cup of coffee...
Comment #4
nirbhasa commentedThis patch checks if there already exists a pending revision - if so, it warns the 'exempt admin' user that there exists other pending revisions which will be overwritten by their revision. if not, it just goes ahead and publishes the revision without any problems.
(edit: after reading #1 i realised that this patch has not been tested on new install: to do)
Comment #5
Ela commentedany updates? :)
Comment #6
Ela commentedoh well... :)
Used the patch above.. seems to do it's job :)
Thank you for providing it
Comment #7
sign commentedtested on a new installation and works well for me
cleaned it a bit (coding standards - spaces, tabs,...)
marking as RTBC
Comment #8
jackalope commentedI had the same problem, and the patch in #7 worked nicely. Thanks!
Comment #9
steve02476 commentedMe too, I saw the problem after updating to alpha2, and the patch in #7 seems to have fixed the problem. Thanks for publishing it.
Comment #10
auberdjinn commentedThis patch seems to have fixed the problem in our existing installation. Thankyou!
Comment #11
jbrauer commentedCommitted thanks!