Project

General

Profile

Actions

Bug #59813

closed

[usergroup] BE condition in TSconfig not working

Added by Martin Wiederkehr almost 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
Start date:
2014-06-23
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

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.

Actions

Also available in: Atom PDF