[BUGFIX] Proper checks for system maintainers 41/54941/4
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 6 Dec 2017 08:35:28 +0000 (09:35 +0100)
committerBenni Mack <benni@typo3.org>
Wed, 6 Dec 2017 20:50:20 +0000 (21:50 +0100)
commit3d4d9d013f2fa62527bce3f08ee6b2b2c721df89
tree7d1b1cb22570cd79a5996cb53bfcc80acb39422b
parent1e5624e2f3dfdfdf93f419474a8c7652033df710
[BUGFIX] Proper checks for system maintainers

Always use the original user id and never use a fallback to a user id
switched to.

The BackendUserAuthentication->isSystemMaintainer() method now always
returns false if a user is in "switch user" mode.

Resolves: #83041
Releases: master
Change-Id: I25fc15bb9f2ed19ae5080fbe039154be1c1a521f
Reviewed-on: https://review.typo3.org/54941
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php