[BUGFIX] Recycler doesn't show deleted pages for editors 23/46023/2
authorBernhard Kraft <kraftb@think-open.at>
Tue, 15 Dec 2015 13:57:55 +0000 (14:57 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Sat, 16 Jan 2016 17:58:41 +0000 (18:58 +0100)
commitcb19aaf0b67066e08376281954c217a1826ed496
treecb95594e61f21a681f28e649dbf2f77783bf98fb
parent1ff8fd8a2c0ddebad3693c88b0b0767aee04ee24
[BUGFIX] Recycler doesn't show deleted pages for editors

When using the recycler as normal user (non admin) it isn't possible
to restore any pages as the underlying BE API methods by default only
allow to check for access to non-deleted pages. This situation is
circumvented by disabling the "delete" flag in TCA while checking for
access to deleted pages.

Resolves: #70863
Releases: 7.6, master
Change-Id: Ibf6ff305a6dbcf3eaf99fdca89b7bf7c78677319
Reviewed-on: https://review.typo3.org/46023
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
15 files changed:
composer.json
composer.lock
typo3/sysext/core/Tests/FunctionalTestCase.php
typo3/sysext/recycler/Classes/Domain/Model/DeletedRecords.php
typo3/sysext/recycler/Classes/Utility/RecyclerUtility.php
typo3/sysext/recycler/Tests/Functional/Fixtures/Database/be_groups.xml [new file with mode: 0644]
typo3/sysext/recycler/Tests/Functional/Fixtures/Database/be_users.xml [new file with mode: 0644]
typo3/sysext/recycler/Tests/Functional/Fixtures/Database/pages.xml [new file with mode: 0644]
typo3/sysext/recycler/Tests/Functional/Recycle/AbstractRecycleTestCase.php [new file with mode: 0644]
typo3/sysext/recycler/Tests/Functional/Recycle/Pages/AdminRecycleTest.php [new file with mode: 0644]
typo3/sysext/recycler/Tests/Functional/Recycle/Pages/DataSet/Assertion/deletedPage-3.xml [new file with mode: 0644]
typo3/sysext/recycler/Tests/Functional/Recycle/Pages/DataSet/Assertion/deletedPage-3_4_5.xml [new file with mode: 0644]
typo3/sysext/recycler/Tests/Functional/Recycle/Pages/DataSet/Assertion/deletedPage-3_4_5_7.xml [new file with mode: 0644]
typo3/sysext/recycler/Tests/Functional/Recycle/Pages/UserRecycleTest.php [new file with mode: 0644]
typo3/sysext/recycler/composer.json