#97768TYPO3 10.4.29 regression in Admin Tools
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;
}