From: Aaron Schulz Date: Thu, 27 Sep 2007 19:46:33 +0000 (+0000) Subject: *Tone down the crack ;) X-Git-Tag: 1.31.0-rc.0~51264 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=347b389ab61ebfd2e9855a10837d611d58b2335c;p=lhc%2Fweb%2Fwiklou.git *Tone down the crack ;) --- diff --git a/includes/Article.php b/includes/Article.php index bcb3c62253..c0484e7f7b 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1519,15 +1519,9 @@ class Article { $wgOut->errorPage( 'rcpatroldisabled', 'rcpatroldisabledtext' ); return; } - - # Check permissions - if( !$wgUser->isAllowed( 'patrol' ) ) { - $wgOut->permissionRequired( 'patrol' ); - return; - } # Check permissions - $permission_errors = $this->mTitle->getUserPermissionsErrors( 'delete', $wgUser ); + $permission_errors = $this->mTitle->getUserPermissionsErrors( 'patrol', $wgUser ); if (count($permission_errors)>0) {