[BUGFIX] Allow password change in user settings for non admin users
[Packages/TYPO3.CMS.git] / 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();