#108597admin panel: fe user group simulation is wrong
Description
Tested in TYPO3 12.4.39.
I wanted to test the FE user groups with the admin tool function and it seems there is a difference in comparison to real users.
The table in the screenshot shows she difference.
I created two FE user groups (Main/Sub) and the included the Sub group into the Main group.
+The following scenario has a difference+
Testuser/Simulate: Main Group
Page: Sub Group
+Result+
Page shows up for real user: YES
Page shows up for simulation: NO
So the real user is correct but not the simulation. The Main Group inherites the Sub Group but the Page is not visible, when added the “Sub Group” as permission group.
Reviews 2
Files 1
History 24
-
Daniel Siepmann commented <span data-processor="relativetime" data-value="2026-06-11T05:36:58+00:00" > 06/11/26, 05:36 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 96232 status
NewUnder Review <span data-processor="relativetime" data-value="2026-09-30T20:00:05+00:00" > 09/30/26, 20:00 </span> -
Gerrit Code Review pushed patch set 1 for 14.3 to change 96237 <span data-processor="relativetime" data-value="2026-09-30T20:53:05+00:00" > 09/30/26, 20:53 </span>
-
Georg Ringer commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-09-30T20:55:09+00:00" > 09/30/26, 20:55 </span>Applied in changeset commit:ee644bd3ab07743c35020a9292dc76b7f951712e.
Can you provide some more info? I’ve stumbled across a very similiar issue with TYPO3 13.4.30 and found out that
TYPO3\CMS\Frontend\Middleware\PreviewSimulatorandTYPO3\CMS\Adminpanel\Modules\PreviewModuledon’t play together. The AdminPanel does not add the userGroups in the expected format, it uses generic array keys instead of group UIDs, leading to loosing some of the groups when reaching thePreviewSimulator.The following code change in TYPO3 13 worked for me:
I’m not sure if one better changes
resolveGroupsForUser()to return the expected array format. I didn’t investigate the consequences.Maybe you can test if the fix works for you as well.
My suggestion:
1. One should investigate whether the middleware or the API
resolveGroupsForUser()should be fixed.2. Additionally, one should check the code of
TYPO3\CMS\Frontend\Middleware\PreviewSimulator. It might be necessary to use the same API there, as otherwise parent pages might have other groups (parents, etc) leading to other issues if admin panel is not installed.