Well there was no problem in the first place. Nice work Werdna
This commit is contained in:
parent
5c54e58321
commit
b342a81da0
2 changed files with 5 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue