[BUGFIX] Preview pages with publish dates 23/52023/4
authorSusanne Moog <susanne.moog@typo3.com>
Mon, 13 Mar 2017 11:53:08 +0000 (12:53 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Mon, 13 Mar 2017 12:52:50 +0000 (13:52 +0100)
commitf012052f4dca93f612ae0c5ba77e7e58d88cf2ec
treed2eb839313c1d0b96a1849c199bac548d1229cd1
parent7c0ddc7a0e2064c34482c6bf9a58b92bd59c3281
[BUGFIX] Preview pages with publish dates

Currently pages can be hidden for different reasons:
- page is disabled
- page has a start time in the future
- page has an end time in the past
- page has an access restriction

When previewing a page the fe_groups and disabled restriction are
already ignored when TYPO3 is configured to preview hidden pages.

Start and endtime should be ignored, too, so an editor is able to
preview pages with start or end times set.

Change-Id: I634076af7219b70ccfc46f470ba046417177d29a
Resolves: #66451
Releases: master
Reviewed-on: https://review.typo3.org/52023
Reviewed-by: Tobi Kretschmann <tobi@tobishome.de>
Tested-by: Tobi Kretschmann <tobi@tobishome.de>
Reviewed-by: Steffen Frese
Tested-by: Steffen Frese
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/core/Classes/Database/Query/Restriction/FrontendRestrictionContainer.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendRestrictionContainerTest.php
typo3/sysext/frontend/Classes/Page/PageRepository.php