[BUGFIX] Recycler doesn't show deleted pages for editors 92/45292/9
authorBernhard Kraft <kraftb@think-open.at>
Tue, 15 Dec 2015 13:57:55 +0000 (14:57 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 16 Jan 2016 17:41:06 +0000 (18:41 +0100)
commit187fd7cf41594e9676128ba1e9aab1aad3998254
treec41acc239ac4d45cc1e057060eaf6e2c6054b84d
parent4304586464700fdc3ed2ab4c7049b28ce6819508
[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/45292
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.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