From d90b4469d725292fd67dc680f3a8c1d71ab57f8b Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 14 Sep 2006 05:10:06 +0000 Subject: [PATCH] Added error msg git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4648 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/posix/class_posixAccount.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 */ -- 2.30.2