Commit cc2bd063 authored by Frank Nägler's avatar Frank Nägler Committed by Andreas Fernandez
Browse files

[BUGFIX] cast systemMaintainer values to int

Resolves: #82751
Releases: master
Change-Id: Ie87cccc2d890ffaf93fe8558f2a67da82ee8c495
Reviewed-on: https://review.typo3.org/54383


Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
parent b9c02d6f
......@@ -463,6 +463,7 @@ class BackendUserAuthentication extends AbstractUserAuthentication
return true;
}
$systemMaintainers = $GLOBALS['TYPO3_CONF_VARS']['SYS']['systemMaintainers'] ?? [];
$systemMaintainers = array_map('intval', $systemMaintainers);
if (!empty($systemMaintainers)) {
return in_array($this->getRealUserId(), $systemMaintainers, true);
}
......
......@@ -124,6 +124,7 @@ class SettingsController extends AbstractController
->fetchAll();
$systemMaintainerList = $GLOBALS['TYPO3_CONF_VARS']['SYS']['systemMaintainers'] ?? [];
$systemMaintainerList = array_map('intval', $systemMaintainerList);
$currentTime = time();
foreach ($users as &$user) {
$user['disable'] = $user['disable'] ||
......@@ -172,6 +173,7 @@ class SettingsController extends AbstractController
)->execute()->fetchAll();
$validatedUserList = array_column($validatedUserList, 'uid');
$validatedUserList = array_map('intval', $validatedUserList);
$configurationManager = GeneralUtility::makeInstance(ConfigurationManager::class);
$configurationManager->setLocalConfigurationValuesByPathValuePairs(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment