Code

Updated account creation
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Oct 2010 13:48:18 +0000 (13:48 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Oct 2010 13:48:18 +0000 (13:48 +0000)
-Mechanism wasn't correct, if dn is 'new' do not check for account existence...

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20003 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/groupware/personal/groupware/class_Groupware.inc
gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc

index a70e730e0569486a035fffe268594ffe59f9c430..69c1e2bbc89e63abe131d25d9916d3a1d5d796b5 100644 (file)
@@ -219,8 +219,10 @@ class Groupware extends plugin
 
         // If this is a new user, then do not try to check account status 
         //  the account cannot exists.                 
+        $this->mailLocations = $this->groupwareDao->get('mailLocations', array());
         if($this->dn == "new"){
             $this->initially_was_account = $this->is_account = FALSE;
+            $this->accountInitialized = TRUE;
         }else{
 
             // Get rpc handle to fetch account info and feature availability.
@@ -230,9 +232,6 @@ class Groupware extends plugin
                 if($this->is_account){
                     $response = $this->groupwareDao->getComprehensiverUser($this->uid);
                     $this->mapComprehensiveUserData($response);
-                }else{
-                    $emptyUser["mailLocations"] = $this->rpcExec('gwGetMailboxLocations');
-                    $this->mapComprehensiveUserData($emptyUser);
                 }
                 $this->accountInitialized = TRUE;
             }
index f7ad60711af1d10d01228ff8fb479988b91ac399..858fe71ad734926cbc4ca72664cdedb6c048a2cc 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
  
 /*! \brief Data Access Object for groupwares 
  */
@@ -311,8 +312,8 @@ class GroupwareDao{
        //This is a feature with many datasets inside which should be cut in slices and saved separately.
        //Since the knowledge about the feature is only known in the plugin this has got to be moved.
        
-       function saveFoldersAndAcls($id, $mailFolder){
-               echo "Hape";
+       function saveFoldersAndAcls($id, $mailFolder)
+    {
                /*
                 'user/wiwu/Aufgaben' => array( 
                         "name" =>"Aufgaben",