From: Rob Church Date: Sat, 21 Jan 2006 20:29:17 +0000 (+0000) Subject: Check for "block" permission, not "protect" permission, when determining whether... X-Git-Tag: 1.6.0~460 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=142b9d8b1fbb7d2e0d3fce5698eaa4e82972d70e;p=lhc%2Fweb%2Fwiklou.git Check for "block" permission, not "protect" permission, when determining whether or not to show a block link in the toolbox --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index ac215ceaa0..beeecfa9e4 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -834,7 +834,7 @@ class SkinTemplate extends Skin { $nav_urls['contributions'] = array( 'href' => $this->makeSpecialUrl('Contributions/' . $this->mTitle->getText() ) ); - if ( $wgUser->isAllowed( 'protect' ) ) + if ( $wgUser->isAllowed( 'block' ) ) $nav_urls['blockip'] = array( 'href' => $this->makeSpecialUrl( 'Blockip/' . $this->mTitle->getText() ) );