Check markbotedits permission on regular rollback as well
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 20 Nov 2007 15:22:06 +0000 (15:22 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 20 Nov 2007 15:22:06 +0000 (15:22 +0000)
includes/Article.php

index e982410..0e2a992 100644 (file)
@@ -2282,7 +2282,7 @@ class Article {
                }
        
                $set = array();
-               if ( $bot ) {
+               if ( $bot && $wgUser->isAllowed('markbotedits') ) {
                        # Mark all reverted edits as bot
                        $set['rc_bot'] = 1;
                }