Fix single TwoFAccount association to group

This commit is contained in:
Bubka 2021-10-08 00:52:15 +02:00
parent 72db88e9fa
commit c927f3f9ab

View File

@ -116,6 +116,9 @@ public function assign($ids, Group $group = null) : Group
$group = $this->destinationGroup();
}
if (!is_array($ids)) {
$ids = array($ids);
}
$twofaccounts = TwoFAccount::find($ids);
$group->twofaccounts()->saveMany($twofaccounts);