Make Special:Redirect work for blocked users and in read-only mode
authorGlaisher <glaisher.wiki@gmail.com>
Thu, 15 Oct 2015 16:31:46 +0000 (21:31 +0500)
committerGlaisher <glaisher.wiki@gmail.com>
Thu, 15 Oct 2015 16:31:46 +0000 (21:31 +0500)
Bug: T115570
Change-Id: Id26af6efe9dc7eddb2066a2f61c86116305fff7c

includes/specials/SpecialRedirect.php

index 72d21eb..553e2b1 100644 (file)
@@ -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';
        }