X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FEditPage.php;h=9aa65505dfb07282128a7e0e7de2bc2dd8f36233;hb=e8632ab0f6264851d2115a2e6338c2074b9a9b8c;hp=644b6255c154f8593b0738cd1057620c60fb420e;hpb=3fc48dec34fb2aee0ffbc785a3e2895c931cd842;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/EditPage.php b/includes/EditPage.php index 644b6255c1..9aa65505df 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1495,7 +1495,11 @@ class EditPage { * @return Status The resulting status object. */ public function attemptSave( &$resultDetails = false ) { - # Allow bots to exempt some edits from bot flagging + // TODO: MCR: treat $this->minoredit like $this->bot and check isAllowed( 'minoredit' )! + // Also, add $this->autopatrol like $this->bot and check isAllowed( 'autopatrol' )! + // This is needed since PageUpdater no longer checks these rights! + + // Allow bots to exempt some edits from bot flagging $bot = $this->context->getUser()->isAllowed( 'bot' ) && $this->bot; $status = $this->internalAttemptSave( $resultDetails, $bot );