Commit 7364c61d authored by Quentin Ribac's avatar Quentin Ribac
Browse files

FEAT #17436 TIME 0:05 using UserGroupModel::setUserGroups instead of UserGroupModel::addUser

parent 284a2e01
......@@ -107,9 +107,7 @@ class UserModel
]
]);
foreach ($args['groups'] as $groupId) {
UserGroupModel::addUser(['userId' => $nextSequenceId, 'groupId' => $groupId]);
}
UserGroupModel::setUserGroups(['userId' => $nextSequenceId, 'groups' => $args['groups']]);
return $nextSequenceId;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment