From: hickert Date: Thu, 14 Sep 2006 05:10:06 +0000 (+0000) Subject: Added error msg X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d90b4469d725292fd67dc680f3a8c1d71ab57f8b;p=gosa.git Added error msg git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4648 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index 1392ac7c7..46c2c299a 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -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 */