From fa16b9fddf3ae05601b335c8709fa28b1d5430e6 Mon Sep 17 00:00:00 2001 From: Glaisher Date: Thu, 15 Oct 2015 21:31:46 +0500 Subject: [PATCH] Make Special:Redirect work for blocked users and in read-only mode Bug: T115570 Change-Id: Id26af6efe9dc7eddb2066a2f61c86116305fff7c --- includes/specials/SpecialRedirect.php | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) 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'; } -- 2.20.1