mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-23 06:38:34 +01:00
Fix default group not being defined correctly
This commit is contained in:
parent
923ff04e3c
commit
d537c98b76
@ -180,7 +180,7 @@ public function getAccounts(Group $group) : Collection
|
||||
*/
|
||||
private function defaultGroup()
|
||||
{
|
||||
$id = $this->settingService->get('defaultGroup') === '-1' ? (int) $this->settingService->get('activeGroup') : (int) $this->settingService->get('defaultGroup');
|
||||
$id = $this->settingService->get('defaultGroup') === -1 ? (int) $this->settingService->get('activeGroup') : (int) $this->settingService->get('defaultGroup');
|
||||
|
||||
return Group::find($id);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user