Admin: Fix importing users did not import their groups

This commit is contained in:
nathan 2024-10-25 10:37:56 -06:00
parent c0fbd7e091
commit b32b4338ed

View File

@ -96,6 +96,7 @@ class admin_egw_user_record implements importexport_iface_egw_record
*/ */
public function set_record(array $_record){ public function set_record(array $_record){
$this->user = $_record; $this->user = $_record;
if(!array_key_exists('account_groups', $_record))
$this->account_groups = $GLOBALS['egw']->accounts->memberships($this->identifier, true); $this->account_groups = $GLOBALS['egw']->accounts->memberships($this->identifier, true);
} }