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