Merge pull request #2 from mschwemer/feature/slot_for_fal-securedownload

[TASK] Return the new group(s) explicitly
This commit is contained in:
Alex Kellner 2017-07-18 14:59:45 +02:00 committed by GitHub
commit 51093f739c
2 changed files with 3 additions and 6 deletions

View file

@ -8,19 +8,16 @@ use In2code\In2frontendauthentication\Domain\Repository\FeGroupsRepository;
class AddCustomGroupsSlot class AddCustomGroupsSlot
{ {
public function addCustomGroups($checkPermissions) public function addCustomGroups($customGroups)
{ {
$feGroupsRepository = GeneralUtility::makeInstance(ObjectManager::class) $feGroupsRepository = GeneralUtility::makeInstance(ObjectManager::class)
->get(FeGroupsRepository::class); ->get(FeGroupsRepository::class);
$feGroups = $feGroupsRepository->findByCurrentIpAddress(); $feGroups = $feGroupsRepository->findByCurrentIpAddress();
$customGroups = [];
foreach ($feGroups as $feGroup) { foreach ($feGroups as $feGroup) {
$customGroups[] = $feGroup['uid']; $customGroups[] = $feGroup['uid'];
} }
$checkPermissions->addCustomGroups($customGroups); return array($customGroups);
} }
} }

View file

@ -19,7 +19,7 @@ But "showAtAnyLogin" or "hideAtAnyLogin" is not supported at the moment.
| Version | Date | State | Description | | 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.2 | 2016-08-03 | Bugfix | Allow multiple usergroups |
| 1.0.1 | 2016-06-23 | Bugfix | Small fix in german locallang | | 1.0.1 | 2016-06-23 | Bugfix | Small fix in german locallang |
| 1.0.0 | 2016-06-10 | Task | Initial release | | 1.0.0 | 2016-06-10 | Task | Initial release |