From 5656271f16c8ab5b790fcefbcc6db25d4d7f6753 Mon Sep 17 00:00:00 2001 From: Vincent Zanotti Date: Sat, 22 Mar 2008 16:21:38 +0100 Subject: [PATCH] Updates the Google Apps account status on suspend, to prevent email redirections from being reactivated. Signed-off-by: Vincent Zanotti --- include/googleapps.inc.php | 5 +++++ 1 file changed, 5 insertions(+) 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); } } -- 2.1.4