[BUGFIX] Allow password change in user settings for non admin users 06/57706/3
authorFrank Naegler <frank.naegler@typo3.org>
Sat, 28 Jul 2018 12:15:31 +0000 (14:15 +0200)
committerJan Helke <typo3@helke.de>
Sat, 28 Jul 2018 12:52:58 +0000 (14:52 +0200)
This patch restores the possibility to change the password in user
settings for non admin users.

Resolves: #85672
Related: #85196
Releases: master
Change-Id: I775843b0bd62c3e1ecb3a62b850a773409d08c06
Reviewed-on: https://review.typo3.org/57706
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
typo3/sysext/setup/Classes/Controller/SetupModuleController.php

index b112da3..c0fc53f 100644 (file)
@@ -319,6 +319,7 @@ class SetupModuleController
                 // Make instance of TCE for storing the changes.
                 $dataHandler = GeneralUtility::makeInstance(DataHandler::class);
                 $dataHandler->start($storeRec, []);
+                $dataHandler->admin = true;
                 // This is to make sure that the users record can be updated even if in another workspace. This is tolerated.
                 $dataHandler->bypassWorkspaceRestrictions = true;
                 $dataHandler->process_datamap();