From b3edef4a599979be4fb11b0af8252b4be7491410 Mon Sep 17 00:00:00 2001 From: Marcus Schwemer Date: Mon, 17 Jul 2017 10:55:16 +0200 Subject: [PATCH 1/2] [TASK] Return the new group(s) explicitly The signal in fal_secureddownload changed slightly. It requires now, that the new groups are returned by value, instead of modifing the object directly. --- Classes/Slot/AddCustomGroupsSlot.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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); } } From 8112bb68bc1257826ecab7ea77217004740f968e Mon Sep 17 00:00:00 2001 From: Marcus Schwemer Date: Tue, 18 Jul 2017 11:11:02 +0200 Subject: [PATCH 2/2] [TASK] Update documentation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8d6e537..662929f 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ But "showAtAnyLogin" or "hideAtAnyLogin" is not supported at the moment. | Version | Date | State | Description | | ---------- | ---------- | ---------- | ---------------------------------------------------------------------------- | -| 1.1.0 | 2017-06-10 | Feature | Support extension FalSecuredownload | +| 1.1.0 | 2017-06-10 | Feature | Support EXT:fal_securedownload >= version 2.0.0 | | 1.0.2 | 2016-08-03 | Bugfix | Allow multiple usergroups | | 1.0.1 | 2016-06-23 | Bugfix | Small fix in german locallang | | 1.0.0 | 2016-06-10 | Task | Initial release |