Code

Added error msg
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 14 Sep 2006 05:10:06 +0000 (05:10 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 14 Sep 2006 05:10:06 +0000 (05:10 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4648 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/posix/class_posixAccount.inc

index 1392ac7c7fd1ce36a3dab93c33ab0d4548d41fcc..46c2c299a7404824f3b2c1d8c8df09fad8c8b610 100644 (file)
@@ -863,9 +863,11 @@ class posixAccount extends plugin
  
     /* Take care about groupMembership values: add to groups */
     foreach ($this->groupMembership as $key => $value){
-      $g= new grouptabs($this->config,$this->config->data['TABS']['GROUPTABS'], $key);
-      $g->by_object['group']->addUser($this->uid);
-      $g->save();
+      if (!isset($this->savedGroupMembership[$key])){
+        $g= new grouptabs($this->config,$this->config->data['TABS']['GROUPTABS'], $key);
+        $g->by_object['group']->addUser($this->uid);
+        $g->save();
+      }
     }
     
     /* Remove from groups not listed in groupMembership */