From: hickert Date: Thu, 2 Mar 2006 09:06:14 +0000 (+0000) Subject: Fixed GroupMail saving ... : X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3178d30292a74bbe3c8b8b5eec90365d3648bbe5;p=gosa.git Fixed GroupMail saving ... : git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2801 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index 66d47eb91..4df3640f4 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -853,29 +853,17 @@ $ldap->modify ($this->attrs); /* Take care about groupMembership values: add to groups */ foreach ($this->groupMembership as $key => $value){ - $g= new group($this->config, $key); - $g->addUser ($this->uid); + $g= new grouptabs($this->config,$this->config->data['TABS']['GROUPTABS'], $key); + $g->by_object['group']->addUser ($this->uid); $g->save(); - - /* May need to save the mail part, too */ - if ($g->has_mailAccount){ - $m= new mailgroup($this->config, $key); - $m->save(); - } } /* Remove from groups not listed in groupMembership */ foreach ($this->savedGroupMembership as $key => $value){ if (!array_key_exists ($key, $this->groupMembership)){ - $g= new group($this->config, $key); - $g->removeUser ($this->uid); + $g= new grouptabs($this->config,$this->config->data['TABS']['GROUPTABS'], $key); + $g->by_object['group']->removeUser ($this->uid); $g->save(); - - /* May need to save the mail part, too */ - if ($g->has_mailAccount){ - $m= new mailgroup($this->config, $key); - $m->save(); - } } }