Remove "read" from list of allowed actions on special pages
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sat, 22 Dec 2012 13:05:21 +0000 (14:05 +0100)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sat, 22 Dec 2012 13:05:21 +0000 (14:05 +0100)
This is no longer needed since this method is no longer called
when checking permissions for "read" action.

Change-Id: I4d917a4816788febf6b0664665c53a48ae474a67

includes/Title.php

index bdaa66f..e444a72 100644 (file)
@@ -1840,7 +1840,7 @@ class Title {
        private function checkSpecialsAndNSPermissions( $action, $user, $errors, $doExpensiveQueries, $short ) {
                # Only 'createaccount' and 'execute' can be performed on
                # special pages, which don't actually exist in the DB.
-               $specialOKActions = array( 'createaccount', 'execute', 'read' );
+               $specialOKActions = array( 'createaccount', 'execute' );
                if ( NS_SPECIAL == $this->mNamespace && !in_array( $action, $specialOKActions ) ) {
                        $errors[] = array( 'ns-specialprotected' );
                }