X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FAutopromote.php;h=02c9d019d59b7611abb328485339f4a464e8a53f;hb=1b48ed10322a08bc568b62b14275cbf278d6c3a2;hp=a01465e9aeacd3c88ebe1cec3b6bc9d890cc78ed;hpb=c1f430f17b2c6ee009c82c2f2002103613b33d02;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Autopromote.php b/includes/Autopromote.php index a01465e9ae..02c9d019d5 100644 --- a/includes/Autopromote.php +++ b/includes/Autopromote.php @@ -198,7 +198,8 @@ class Autopromote { case APCOND_IPINRANGE: return IP::isInRange( $user->getRequest()->getIP(), $cond[1] ); case APCOND_BLOCKED: - return $user->isBlocked(); + // @TODO Should partial blocks prevent auto promote? + return (bool)$user->getBlock(); case APCOND_ISBOT: return in_array( 'bot', User::getGroupPermissions( $user->getGroups() ) ); default: