#105345Simulate BE-User does not show Install-Tool modules for system maintainers
Description
When switching to another user via “simulate backend user”, the install tool modules “Maintenance”, “Settings” etc. are not displayed, event if the user is a system maintainer and/or the TYPO3_CONTEXT is “Development”.
Reviews 1
History 34
-
Nikita Hovratov changed TYPO3 Version
1312 <span data-processor="relativetime" data-value="2024-10-18T13:18:32+00:00" > 10/18/24, 13:18 </span> -
Garvin Hicking changed category <span data-processor="relativetime" data-value="2024-12-05T07:41:23+00:00" > 12/05/24, 07:41 </span>
-
Jigal van Hemert commented <span data-processor="relativetime" data-value="2024-12-19T14:40:56+00:00" > 12/19/24, 14:40 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 97619 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-13T15:31:25+00:00" > 11/13/26, 15:31 </span>
In case the context is not Development this seems the desired behaviour.
If you are not a system maintainer and switch to another user who is a system maintainer then you should not see the Install Tool modules. Otherwise you could get yourself elevated to the level of a system maintainer.
If you are a system maintainer and switch to another user who is not a system maintainer then you should see the situation as the other user sees it, and thus also not see the Install Tool modules.
The case where you might need to see them is if you are a system maintainer and you switch to a user which is also a system maintainer.
In development context it’s probably safe to show the modules if you switch to another user. Currently \TYPO3\CMS\Core\Authentication\BackendUserAuthentication::isSystemMaintainer() doesn’t check for the context anymore once it detects a switch to another user.
Perhaps the check for switch user should be moved to after the context and both the original user and the target user (if applicable) should be in the list of maintainers in order to return true.