Don't treat edit blocks as read blocks here
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 27 Sep 2008 18:56:17 +0000 (18:56 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 27 Sep 2008 18:56:17 +0000 (18:56 +0000)
includes/Title.php

index b1fcce2..c613f0a 100644 (file)
@@ -1121,7 +1121,8 @@ class Title {
                        $errors[] = array( 'confirmedittext' );
                }
 
-               if ( $user->isBlockedFrom( $this ) && $action != 'createaccount' ) {
+               // Edit blocks should not affect reading. Account creation blocks handled at userlogin.
+               if ( $user->isBlockedFrom( $this ) && $action != 'read' && $action != 'createaccount' ) {
                        $block = $user->mBlock;
 
                        // This is from OutputPage::blockedPage