From: Aaron Schulz Date: Thu, 27 Sep 2007 18:20:06 +0000 (+0000) Subject: *Don't let blocked users patrol X-Git-Tag: 1.31.0-rc.0~51265 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=8468cb4a70bcd661f79b61d04433b925ce44fdc4;p=lhc%2Fweb%2Fwiklou.git *Don't let blocked users patrol --- diff --git a/includes/Article.php b/includes/Article.php index 756a763faf..bcb3c62253 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1525,6 +1525,15 @@ class Article { $wgOut->permissionRequired( 'patrol' ); return; } + + # Check permissions + $permission_errors = $this->mTitle->getUserPermissionsErrors( 'delete', $wgUser ); + + if (count($permission_errors)>0) + { + $wgOut->showPermissionsErrorPage( $permission_errors ); + return; + } # If we haven't been given an rc_id value, we can't do anything $rcid = $wgRequest->getVal( 'rcid' );