[BUGFIX] Set constraints in `FrontendRestrictionContainer` depending on workspace... 22/57822/8
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Sun, 5 Aug 2018 16:12:31 +0000 (18:12 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Fri, 2 Nov 2018 11:57:30 +0000 (12:57 +0100)
commitc3e7779c61cc567b9a1cbf5fec747748e5059464
treef35549cdbfad91928e3639e9bf8b7b7e11480a73
parent1b4ff6428422b2359b3b2820033c9d9b698307d1
[BUGFIX] Set constraints in `FrontendRestrictionContainer` depending on workspace context

The `FrontendRestrictionContainer` must not respect the hidden flag, if
the request happens in a workspace context. The reason is that for
example pages that are created in a workspace have a hidden LIVE version,
which makes overlaying impossible.

This patch changes the behavior to act the same as
`PageRepository::enableFields()` does.

Resolves: #85742
Releases: master, 8.7
Change-Id: I5f1b12bcd8a63daf7eaa9bc9c065b96c343f6ab6
Reviewed-on: https://review.typo3.org/57822
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Sebastian Michaelsen <michaelsen@t3seo.de>
Tested-by: Sebastian Michaelsen <michaelsen@t3seo.de>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/core/Classes/Database/Query/Restriction/FrontendRestrictionContainer.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendRestrictionContainerTest.php