From 347b389ab61ebfd2e9855a10837d611d58b2335c Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 27 Sep 2007 19:46:33 +0000 Subject: [PATCH] *Tone down the crack ;) --- includes/Article.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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) { -- 2.20.1