From 39bd0c75d53c20829d0c79390e85c328f99e50fa Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 17 Dec 2008 07:17:59 +0000 Subject: [PATCH] Use more thorough Title->userCan('patrol') --- includes/Article.php | 2 +- includes/diff/DifferenceEngine.php | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) 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( "