Well there was no problem in the first place. Nice work Werdna
authorAndrew Garrett <werdna@users.mediawiki.org>
Sun, 7 Jan 2007 07:57:54 +0000 (07:57 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Sun, 7 Jan 2007 07:57:54 +0000 (07:57 +0000)
includes/Block.php
includes/User.php

index 644fd9c..ff813ba 100644 (file)
@@ -126,12 +126,6 @@ class Block
                        if ( $this->loadFromResult( $res, $killExpired ) ) {
                                return true;
                        }
-
-                       $userObject = User::newFromId($user);
-
-                       if ($userObject->isAllowed('ipblock-exempt') ) {
-                               $address = '';
-                       }
                }
 
                # Try IP block
index c66c2d7..44dada4 100644 (file)
@@ -836,6 +836,11 @@ class User {
                $this->mBlockedby = 0;
                $ip = wfGetIP();
 
+               if ($this->isAllowed( 'ipblock-exempt' ) ) {
+                       # Exempt from all types of IP-block
+                       $ip = '';
+               }
+
                # User/IP blocking
                $this->mBlock = new Block();
                $this->mBlock->fromMaster( !$bFromSlave );