* (bug 20464) Force manual recaching to false in LocalisationCache::disableBackend...
[lhc/web/wiklou.git] / includes / Autopromote.php
index c8a4c03..9b22a7b 100644 (file)
@@ -18,9 +18,9 @@ class Autopromote {
                        if( self::recCheckCondition( $cond, $user ) )
                                $promote[] = $group;
                }
-               
+
                wfRunHooks( 'GetAutoPromoteGroups', array( $user, &$promote ) );
-               
+
                return $promote;
        }
 
@@ -116,6 +116,8 @@ class Autopromote {
                                return $cond[1] == wfGetIP();
                        case APCOND_IPINRANGE:
                                return IP::isInRange( wfGetIP(), $cond[1] );
+                       case APCOND_BLOCKED:
+                               return $user->isBlocked();
                        default:
                                $result = null;
                                wfRunHooks( 'AutopromoteCondition', array( $cond[0], array_slice( $cond, 1 ), $user, &$result ) );