From 142b9d8b1fbb7d2e0d3fce5698eaa4e82972d70e Mon Sep 17 00:00:00 2001 From: Rob Church Date: Sat, 21 Jan 2006 20:29:17 +0000 Subject: [PATCH] Check for "block" permission, not "protect" permission, when determining whether or not to show a block link in the toolbox --- includes/SkinTemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() ) ); -- 2.20.1