From: Vincent Zanotti Date: Sat, 22 Mar 2008 15:21:38 +0000 (+0100) Subject: Updates the Google Apps account status on suspend, to prevent email redirections... X-Git-Tag: xorg/0.9.16~84 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=5656271f16c8ab5b790fcefbcc6db25d4d7f6753;p=platal.git Updates the Google Apps account status on suspend, to prevent email redirections from being reactivated. Signed-off-by: Vincent Zanotti --- diff --git a/include/googleapps.inc.php b/include/googleapps.inc.php index f893fcd..dadbf03 100644 --- a/include/googleapps.inc.php +++ b/include/googleapps.inc.php @@ -319,6 +319,11 @@ class GoogleAppsAccount if (!$this->pending_update_suspension) { $this->create_queue_job('u_update', array('suspended' => true)); $this->pending_update_suspension = true; + XDB::execute( + "UPDATE gapps_accounts + SET g_status = 'disabled' + WHERE g_account_name = {?} AND g_status = 'active'", + $this->g_account_name); } }