mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-19 19:28:08 +02:00
Fix single TwoFAccount association to group
This commit is contained in:
parent
72db88e9fa
commit
c927f3f9ab
@ -116,6 +116,9 @@ class GroupService
|
|||||||
$group = $this->destinationGroup();
|
$group = $this->destinationGroup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!is_array($ids)) {
|
||||||
|
$ids = array($ids);
|
||||||
|
}
|
||||||
$twofaccounts = TwoFAccount::find($ids);
|
$twofaccounts = TwoFAccount::find($ids);
|
||||||
|
|
||||||
$group->twofaccounts()->saveMany($twofaccounts);
|
$group->twofaccounts()->saveMany($twofaccounts);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user