From: Aaron Schulz Date: Wed, 17 Dec 2008 07:17:59 +0000 (+0000) Subject: Use more thorough Title->userCan('patrol') X-Git-Tag: 1.31.0-rc.0~43916 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=39bd0c75d53c20829d0c79390e85c328f99e50fa;p=lhc%2Fweb%2Fwiklou.git Use more thorough Title->userCan('patrol') --- diff --git a/includes/Article.php b/includes/Article.php index eb8f329aa3..c6e3c88c9a 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -914,7 +914,7 @@ class Article { # If we have been passed an &rcid= parameter, we want to give the user a # chance to mark this new article as patrolled. - if( !is_null( $rcid ) && $rcid != 0 && $wgUser->isAllowed( 'patrol' ) && $this->mTitle->exists() ) { + if( !empty($rcid) && $this->mTitle->exists() && $this->mTitle->userCan('patrol') ) { $wgOut->addHTML( "