Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment