forked from extern/egroupware
fixed call to accounts::save_repository not update for each user, but one time at the end
This commit is contained in:
parent
8ec4604d2a
commit
889b6931f1
@ -493,7 +493,6 @@
|
|||||||
|
|
||||||
// Set group acl
|
// Set group acl
|
||||||
$acl = CreateObject('phpgwapi.acl',$group_info['account_id']);
|
$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');
|
$old_group_list = $acl->get_ids_for_location($group_info['account_id'],1,'phpgw_group');
|
||||||
@reset($old_group_list);
|
@reset($old_group_list);
|
||||||
while($old_group_list && list($key,$user_id) = each($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']);
|
@reset($group_info['account_user']);
|
||||||
while(list($user_id,$dummy) = each($group_info['account_user']))
|
while(list($user_id,$dummy) = each($group_info['account_user']))
|
||||||
{
|
{
|
||||||
@ -549,18 +545,11 @@
|
|||||||
{
|
{
|
||||||
$GLOBALS['pref']->save_repository();
|
$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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
// This is down here so we are sure to catch the acl changes
|
||||||
// Update any other options here, since the above save_repository () depends
|
// for LDAP to update the memberuid attribute
|
||||||
// on a group having users
|
|
||||||
$group->data['file_space'] = $_POST['account_file_space_number'] . "-" . $_POST['account_file_space_type'];
|
|
||||||
$group->save_repository();
|
$group->save_repository();
|
||||||
*/
|
|
||||||
|
|
||||||
$GLOBALS['phpgw']->db->unlock();
|
$GLOBALS['phpgw']->db->unlock();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user