From: Glaisher Date: Thu, 15 Oct 2015 16:31:46 +0000 (+0500) Subject: Make Special:Redirect work for blocked users and in read-only mode X-Git-Tag: 1.31.0-rc.0~9383 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=fa16b9fddf3ae05601b335c8709fa28b1d5430e6;p=lhc%2Fweb%2Fwiklou.git Make Special:Redirect work for blocked users and in read-only mode Bug: T115570 Change-Id: Id26af6efe9dc7eddb2066a2f61c86116305fff7c --- diff --git a/includes/specials/SpecialRedirect.php b/includes/specials/SpecialRedirect.php index 72d21ebedb..553e2b1235 100644 --- a/includes/specials/SpecialRedirect.php +++ b/includes/specials/SpecialRedirect.php @@ -269,13 +269,27 @@ class SpecialRedirect extends FormSpecialPage { */ protected function getSubpagesForPrefixSearch() { return array( - "file", - "page", - "revision", - "user", + 'file', + 'page', + 'revision', + 'user', ); } + /** + * @return bool + */ + public function requiresWrite() { + return false; + } + + /** + * @return bool + */ + public function requiresUnblock() { + return false; + } + protected function getGroupName() { return 'redirects'; }