From 3178d30292a74bbe3c8b8b5eec90365d3648bbe5 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 2 Mar 2006 09:06:14 +0000 Subject: [PATCH] Fixed GroupMail saving ... : git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2801 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/posix/class_posixAccount.inc | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) 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(); - } } } -- 2.30.2