[BUGFIX] Allow multiple usergroups

This commit is contained in:
Alex Kellner 2016-08-03 15:53:03 +02:00
parent e655cb399b
commit 29ffaf7424
2 changed files with 6 additions and 6 deletions

View file

@ -47,9 +47,9 @@ class AuthenticationService extends AuthenticationServiceCore
{
$feGroupsRepository = GeneralUtility::makeInstance(ObjectManager::class)
->get(FeGroupsRepository::class);
$feGroup = $feGroupsRepository->findByCurrentIpAddress();
if (!empty($feGroup)) {
return $feGroup;
$feGroups = $feGroupsRepository->findByCurrentIpAddress();
if (!empty($feGroups)) {
return $feGroups;
}
return parent::getGroups($user, $knownGroups);
}