From 889b6931f1432d2bda82f141b9a871d5c6cd37e0 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 23 Jun 2004 13:19:38 +0000 Subject: [PATCH] fixed call to accounts::save_repository not update for each user, but one time at the end --- admin/inc/class.boaccounts.inc.php | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/admin/inc/class.boaccounts.inc.php b/admin/inc/class.boaccounts.inc.php index b7d30f6342..edc045e14d 100755 --- a/admin/inc/class.boaccounts.inc.php +++ b/admin/inc/class.boaccounts.inc.php @@ -493,7 +493,6 @@ // Set group acl $acl = CreateObject('phpgwapi.acl',$group_info['account_id']); -// $acl->read_repository(); $old_group_list = $acl->get_ids_for_location($group_info['account_id'],1,'phpgw_group'); @reset($old_group_list); while($old_group_list && list($key,$user_id) = each($old_group_list)) @@ -509,9 +508,6 @@ } } -// $acl->save_repository(); -// $acl->read_repository(); - @reset($group_info['account_user']); while(list($user_id,$dummy) = each($group_info['account_user'])) { @@ -549,18 +545,11 @@ { $GLOBALS['pref']->save_repository(); } - - // This is down here so we are sure to catch the acl changes - // for LDAP to update the memberuid attribute - $group->save_repository(); } - /* - // Update any other options here, since the above save_repository () depends - // on a group having users - $group->data['file_space'] = $_POST['account_file_space_number'] . "-" . $_POST['account_file_space_type']; + // This is down here so we are sure to catch the acl changes + // for LDAP to update the memberuid attribute $group->save_repository(); - */ $GLOBALS['phpgw']->db->unlock();