From b7bdf4cd926bfcd5d2733a2db07e20c249c297b9 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 14 Sep 2006 06:32:40 +0000 Subject: [PATCH] Speed improvements git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4649 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/posix/class_posixAccount.inc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index 56fa2a652..ae564be6b 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -875,10 +875,12 @@ 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,"groups"); - $g->set_acl_base($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,"groups"); + $g->set_acl_base($key); + $g->by_object['group']->addUser($this->uid); + $g->save(); + } } /* Remove from groups not listed in groupMembership */ -- 2.30.2