Issue Task Under Review

#111573The list of frontend user groups that a backend user may simulate is only available inside the admin panel

Matthias Vogel 11/25/26, 09:05 updated 11/25/26, 13:23

Description

The preview module of the admin panel shows the frontend user groups that the current backend user may simulate. The rule is in the internal class TYPO3\CMS\Adminpanel\Repositories\FrontendGroupsRepository, which reads the backend user from $GLOBALS['BE_USER'] and gets its connection through GeneralUtility::makeInstance(). Other core code that needs the same answer for a given backend user cannot use this rule. Move the rule into an internal core service that takes the backend user as an argument and gets the connection pool through dependency injection. The admin panel uses the new service. The behaviour does not change.

Reviews 1

History 23

  1. Matthias Vogel changed Related to #110664 11/25/26, 09:05

  2. Gerrit Code Review pushed patch set 1 for main to change 98001 status New Under Review 11/25/26, 09:09

  3. Matthias Vogel changed parent task #111576 11/25/26, 13:23