[TASK] Streamline userid/username handling and system-maintainer checks
The new methods AbstractUserAuthentication::getUserName() and AbstractUserAuthentication::getUserId() can be used to resolve the corresponding values (instead of using the $user->user array). In addition, the pure system-maintainer checks have been moved into to central BackendUserAuthentication::isSystemMaintainer(). The term "pure" refers to ignoring the development context and not applying any fallbacks in case the setting is empty. Resolves: #103323 Releases: main, 12.4 Change-Id: Ia7db222dac32acc2ef13a34ded4545ba1aedefc3 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83306 Reviewed-by:Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Benni Mack <benni@typo3.org> Tested-by:
Oliver Hader <oliver.hader@typo3.org> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Oliver Klee <typo3-coding@oliverklee.de> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Oliver Hader <oliver.hader@typo3.org>
Showing
- typo3/sysext/backend/Classes/ContextMenu/ItemProviders/RecordProvider.php 1 addition, 2 deletions...kend/Classes/ContextMenu/ItemProviders/RecordProvider.php
- typo3/sysext/backend/Classes/Controller/EditDocumentController.php 2 additions, 3 deletions...ext/backend/Classes/Controller/EditDocumentController.php
- typo3/sysext/backend/Classes/Controller/MfaAjaxController.php 7 additions, 8 deletions...3/sysext/backend/Classes/Controller/MfaAjaxController.php
- typo3/sysext/backend/Classes/Controller/MfaController.php 2 additions, 2 deletionstypo3/sysext/backend/Classes/Controller/MfaController.php
- typo3/sysext/backend/Classes/Controller/MfaSetupController.php 2 additions, 2 deletions.../sysext/backend/Classes/Controller/MfaSetupController.php
- typo3/sysext/backend/Classes/Controller/RecordListDownloadController.php 1 addition, 1 deletion...ckend/Classes/Controller/RecordListDownloadController.php
- typo3/sysext/backend/Classes/Controller/SwitchUserController.php 3 additions, 3 deletions...ysext/backend/Classes/Controller/SwitchUserController.php
- typo3/sysext/backend/Classes/Form/Element/MfaInfoElement.php 6 additions, 7 deletionstypo3/sysext/backend/Classes/Form/Element/MfaInfoElement.php
- typo3/sysext/backend/Classes/Form/FieldInformation/AdminIsSystemMaintainer.php 1 addition, 1 deletion...Classes/Form/FieldInformation/AdminIsSystemMaintainer.php
- typo3/sysext/backend/Classes/Search/EventListener/AddLiveSearchResultActionsListener.php 1 addition, 1 deletion...arch/EventListener/AddLiveSearchResultActionsListener.php
- typo3/sysext/beuser/Classes/ViewHelpers/SwitchUserViewHelper.php 1 addition, 1 deletion...ysext/beuser/Classes/ViewHelpers/SwitchUserViewHelper.php
- typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php 22 additions, 5 deletions...ore/Classes/Authentication/AbstractUserAuthentication.php
- typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php 10 additions, 9 deletions...core/Classes/Authentication/BackendUserAuthentication.php
- typo3/sysext/core/Classes/Authentication/Mfa/MfaProviderPropertyManager.php 3 additions, 3 deletions...Classes/Authentication/Mfa/MfaProviderPropertyManager.php
- typo3/sysext/core/Classes/Hooks/TcaDisplayConditions.php 1 addition, 1 deletiontypo3/sysext/core/Classes/Hooks/TcaDisplayConditions.php
- typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php 2 additions, 2 deletions...end/Classes/Authentication/FrontendUserAuthentication.php
- typo3/sysext/setup/Classes/Controller/SetupModuleController.php 2 additions, 3 deletions...sysext/setup/Classes/Controller/SetupModuleController.php
- typo3/sysext/sys_note/Classes/Renderer/NoteRenderer.php 2 additions, 2 deletionstypo3/sysext/sys_note/Classes/Renderer/NoteRenderer.php
- typo3/sysext/webhooks/Classes/Message/MfaVerificationErrorOccurredMessage.php 2 additions, 2 deletions...s/Classes/Message/MfaVerificationErrorOccurredMessage.php
Please register or sign in to comment