mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-03-27 23:06:06 +01:00
Fix single TwoFAccount association to group
This commit is contained in:
parent
72db88e9fa
commit
c927f3f9ab
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user