summaryrefslogtreecommitdiff
path: root/includes/Autopromote.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Autopromote.php')
-rw-r--r--includes/Autopromote.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/includes/Autopromote.php b/includes/Autopromote.php
index c8a4c03b..c0adff43 100644
--- a/includes/Autopromote.php
+++ b/includes/Autopromote.php
@@ -1,5 +1,4 @@
<?php
-
/**
* This class checks if user can get extra rights
* because of conditions specified in $wgAutopromote
@@ -18,9 +17,9 @@ class Autopromote {
if( self::recCheckCondition( $cond, $user ) )
$promote[] = $group;
}
-
+
wfRunHooks( 'GetAutoPromoteGroups', array( $user, &$promote ) );
-
+
return $promote;
}
@@ -116,6 +115,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 ) );