* Remove "shortcut" in Title::userCanRead, it prevents $wgRevokePermissions and exten...
authorRyan Schmidt <skizzerz@users.mediawiki.org>
Sat, 20 Jun 2009 14:37:42 +0000 (14:37 +0000)
committerRyan Schmidt <skizzerz@users.mediawiki.org>
Sat, 20 Jun 2009 14:37:42 +0000 (14:37 +0000)
RELEASE-NOTES
includes/Title.php

index 5ef87d1..67badd7 100644 (file)
@@ -195,6 +195,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 17014) Blocked users can no longer use Special:UserRights unless they
   can add/remove *all* groups (have 'userrights' permission).
 * (bug 19294) Always show Sp-contributions-footer(-anon)
+* Attempts to restrict reading of pages while anonymous viewing is allowed
+  via extensions not using the userCan hook and via $wgRevokePermissions now work.
 
 == API changes in 1.16 ==
 
index 9245752..dd299c8 100644 (file)
@@ -1490,10 +1490,6 @@ class Title {
                        return $result;
                }
 
-               # Shortcut for public wikis, allows skipping quite a bit of code
-               if ( !empty( $wgGroupPermissions['*']['read'] ) )
-                       return true;
-
                if( $wgUser->isAllowed( 'read' ) ) {
                        return true;
                } else {