[BUGFIX] Switch-User feature uses wrong user id for logging 89/45489/4
authorOliver Hader <oliver@typo3.org>
Tue, 29 Dec 2015 14:07:12 +0000 (15:07 +0100)
committerFrank Naegler <frank.naegler@typo3.org>
Fri, 26 Feb 2016 15:10:35 +0000 (16:10 +0100)
commit90f44c5417c3b04aaf196ae7a2b795dc79473dbc
tree1fc2a3dadb7878a7dbed9c22aca69f39e00d3b79
parent423549f1a8936dac19a29d1080d38426c83acad9
[BUGFIX] Switch-User feature uses wrong user id for logging

Issue #17643 introduced logging for a simulated backend user
(switch-user) and thus logs by using the original admin user.

This is a regression in PageLayoutController::renderQuickEdit
since the used backend user id is different to the persisted
one. Besides that, all actions are performed with the permissions
of the simulated user - thus, logging with a different user seems
to wrong. The sys_log.log_data field (array) is used to transport
the information of the original (admin) user.

This change reverts the initial change of issue #17643 and adds
the initial intention of that issue as addition to the persisted
data in sys_log.log_data. All affected components are adjusted as
well to visualize that a user has been simulated (log view, record
history and lowlevel_cleaner syslog command).

Resolves: #71580
Releases: master, 7.6
Change-Id: If12df60563afd1f0746d43e62f824b20f139df8c
Reviewed-on: https://review.typo3.org/45489
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/backend/Classes/History/RecordHistory.php
typo3/sysext/belog/Resources/Private/Language/locallang.xlf
typo3/sysext/belog/Resources/Private/Partials/Content/LogEntries.html
typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php
typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php
typo3/sysext/core/Classes/Error/ErrorHandler.php
typo3/sysext/lang/locallang_show_rechis.xlf
typo3/sysext/lowlevel/Classes/SyslogCommand.php