From: hickert Date: Wed, 29 Sep 2010 09:08:44 +0000 (+0000) Subject: Only receive account if while account is active X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=96866b5f282423a2b1bd6f96ca2ecb2885a6ee35;p=gosa.git Only receive account if while account is active git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19844 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc index 25157ba5a..3fc734804 100644 --- a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc +++ b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc @@ -181,16 +181,19 @@ class Groupware extends plugin } $this->enabledFeatures[$name] = $active; } + // Get rpc handle to fetch account info and feature availability. $status = $this->rpcExec('gwAcctExists', $this->uid); if($status !== NULL){ - $response = $this->groupwareDao->getComprehensiverUser($this->uid); - - $this->mapComprehensiveUserData($response); $this->initially_was_account = $this->is_account = $status; + if($this->is_account){ + $response = $this->groupwareDao->getComprehensiverUser($this->uid); + $this->mapComprehensiveUserData($response); + } $this->accountInitialized = TRUE; } + // Set vacation start/stop if not set alreasy $this->vacationStart = time(); $this->vacationStop = time() + (14 * 60*60*24);