mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-02 20:19:27 +01:00
fix group memberships got lost editing primary-group of an account
This commit is contained in:
parent
58703cbaba
commit
3161444d09
@ -199,7 +199,8 @@ class admin_account
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Make sure primary group is in account groups
|
// Make sure primary group is in account groups
|
||||||
if ($account['account_primary_group'] && !in_array($account['account_primary_group'], (array)$account['account_groups']))
|
if (isset($account['account_groups']) && $account['account_primary_group'] &&
|
||||||
|
!in_array($account['account_primary_group'], (array)$account['account_groups']))
|
||||||
{
|
{
|
||||||
$account['account_groups'][] = $account['account_primary_group'];
|
$account['account_groups'][] = $account['account_primary_group'];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user