Check for "block" permission, not "protect" permission, when determining whether...
authorRob Church <robchurch@users.mediawiki.org>
Sat, 21 Jan 2006 20:29:17 +0000 (20:29 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sat, 21 Jan 2006 20:29:17 +0000 (20:29 +0000)
includes/SkinTemplate.php

index ac215ce..beeecfa 100644 (file)
@@ -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() )
                                );