[BUGFIX] Show deleted page actions in record history 80/54580/5
authorHelmut Hummel <typo3@helhum.io>
Tue, 7 Nov 2017 14:09:08 +0000 (15:09 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Thu, 9 Nov 2017 18:16:40 +0000 (19:16 +0100)
commit3b0654fc6195974d68f5d2711aaa17b62feb7156
tree9ade25b8a2ed2581c69a6c122e22bdc743f5c3dd
parentf7cdd083e7d18b55141be047467f61aea854f7e2
[BUGFIX] Show deleted page actions in record history

Because users have no access to deleted pages,
the access check always fails, leading to delete page
actions not being shown in the history despite being
properly tracked.

We now check this case and do a more lightweight check
so that we still have the permissions checked,
but can show deleted pages without disclosing unwanted
information.

Resolves: #45056
Releases: 7.6, 8.7, master
Change-Id: Id919a24651c18a351f9723e86610b525a4f4726c
Reviewed-on: https://review.typo3.org/54580
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/Controller/ContentElement/ElementHistoryController.php
typo3/sysext/backend/Classes/History/RecordHistory.php
typo3/sysext/backend/Resources/Private/Partials/RecordHistory/History.html