Actions
Bug #97768
closedTYPO3 10.4.29 regression in Admin Tools
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-06-14
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
Description
The new function
public function hasActiveBackendUserRoleAndSession(): bool TYPO3\CMS\Install\Service\SessionService
introduces a regression if you have no system maintainer configured. According to the documentation
"If no system maintainer is set up, then all administrators are assigned the system maintainer role."
The following statement fails:
$systemMaintainers = array_map('intval', $GLOBALS['TYPO3_CONF_VARS']['SYS']['systemMaintainers'] ?? []); // stop here, in case the current admin tool session does not belong to a backend user having admin & maintainer privileges if (!$isAdmin || !in_array((int)$backendUserRecord['uid'], $systemMaintainers, true)) { return false; }
Actions