[BUGFIX] Do not ask for current password if admin 57/52557/2
authorMarkus Klein <markus.klein@typo3.org>
Fri, 21 Apr 2017 20:29:43 +0000 (22:29 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 22 Apr 2017 16:00:20 +0000 (18:00 +0200)
commit4aee4375a3800c929f6c554985257a645f626ac4
treeccd9aef9199d21daa115039ef7d6c881bbcd2787
parent535958b8b4217204e7f0c82feebb4578c0fa3e88
[BUGFIX] Do not ask for current password if admin

Hide the field for the current password, if the current user is
admin anyway. If the admin changes the password for someone else
he/she doesn't know the current password of this person anyway.

Besides that, a password can always be changed without providing
a current password by an admin using the BE users module.

Resolves: #80951
Releases: master, 8.7, 7.6
Change-Id: Ic9673197e651df5d1fe5886c4b6f6f76a303062f
Reviewed-on: https://review.typo3.org/52556
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-on: https://review.typo3.org/52557
typo3/sysext/setup/Classes/Controller/SetupModuleController.php