diff --git a/Classes/Slot/AddCustomGroupsSlot.php b/Classes/Slot/AddCustomGroupsSlot.php index 540e02e..60e7734 100644 --- a/Classes/Slot/AddCustomGroupsSlot.php +++ b/Classes/Slot/AddCustomGroupsSlot.php @@ -8,19 +8,16 @@ use In2code\In2frontendauthentication\Domain\Repository\FeGroupsRepository; class AddCustomGroupsSlot { - public function addCustomGroups($checkPermissions) + public function addCustomGroups($customGroups) { $feGroupsRepository = GeneralUtility::makeInstance(ObjectManager::class) ->get(FeGroupsRepository::class); $feGroups = $feGroupsRepository->findByCurrentIpAddress(); - - - $customGroups = []; foreach ($feGroups as $feGroup) { $customGroups[] = $feGroup['uid']; } - $checkPermissions->addCustomGroups($customGroups); + return array($customGroups); } }