Issue Bug Closed

#59813[usergroup] BE condition in TSconfig not working

Martin Wiederkehr 06/23/14, 15:51 updated 10/02/18, 11:54

Description

Having troubles with the [usergroup] BE condition in TSconfig as it’s not working at all. I have analyzed the code a bit and found out that the $groupList string in the ConditionMatcher.php is always empty, therefore the if clause is never true

typo3/sysext/backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php

$groupList = $this->getGroupList(); return "" (Line 63)

Nevertheless, [usergroup = *] is still working as it’s no releated to $groupList (Line 66)

A bit of more debuging shows, that the $this->userGroupsUID array is already empty

typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php

$this->groupList = implode(',', $this->userGroupsUID); (Line 1425)

I quit analyzing there as the whole fetchGroupData function is really complex.

Reviews 3