X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Fcron%2Fgoogle_apps.php;h=82c62a271e39a0a2f8a4940f1722c88f823ea29a;hb=b1f83433d0a71abd5e76f3070a95196eec310b05;hp=925cb333f55ec3da60694011dd498be47c32f2b7;hpb=65d7c6231130f7448f537449b9267285810510d4;p=platal.git diff --git a/bin/cron/google_apps.php b/bin/cron/google_apps.php index 925cb33..82c62a2 100755 --- a/bin/cron/google_apps.php +++ b/bin/cron/google_apps.php @@ -91,7 +91,7 @@ $res = XDB::iterator( INNER JOIN aliases AS f ON (f.id = g.l_userid AND f.type = 'a_vie') INNER JOIN aliases AS a ON (a.id = g.l_userid AND a.type = 'alias') LEFT JOIN gapps_nicknames AS n ON (n.l_userid = g.l_userid AND n.g_nickname = a.alias) - WHERE n.g_nickname IS NULL AND g.l_userid IS NOT NULL"); + WHERE g.g_status = 'active' AND n.g_nickname IS NULL AND g.l_userid IS NOT NULL"); while ($nickname = $res->next()) { // Checks that the requested nickname doesn't look like a regular forlife; // we might run in troubler later if we don't keep the two repos. If we need