Project

General

Profile

Actions

Bug #97768

closed

TYPO3 10.4.29 regression in Admin Tools

Added by Thomas Hohn over 2 years ago. Updated about 2 years ago.

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;
}

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #97769: Cannot open Admin modules anymoreClosed2022-06-14

Actions
Actions

Also available in: Atom PDF