Commit 282de42e authored by Daniel Siepmann's avatar Daniel Siepmann Committed by Benjamin Franzke
Browse files

[BUGFIX] Respect none accessible workspace pages in tree list

If a versioned page is inaccessible due to versionOL, the row will be
converted to a value of "false". This can be the case for deleted or hidden pages.
In those cases, the tree should not include this page.
Keeping the page would furthermore result in a type error, as later
calls expect $row to be an array.

Resolves: #93009
Releases: master, 10.4
Change-Id: I43033e6fe3b403ffc2eebb2cc7080b988425917e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/67043


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
parent 7b82e83d
......@@ -5501,10 +5501,12 @@ class ContentObjectRenderer implements LoggerAwareInterface
/** @var VersionState $versionState */
$versionState = VersionState::cast($row['t3ver_state']);
$tsfe->sys_page->versionOL('pages', $row);
if ((int)$row['doktype'] === PageRepository::DOKTYPE_RECYCLER
if ($row === false
|| (int)$row['doktype'] === PageRepository::DOKTYPE_RECYCLER
|| (int)$row['doktype'] === PageRepository::DOKTYPE_BE_USER_SECTION
|| $versionState->indicatesPlaceholder()
) {
// falsy row means Overlay prevents access to this page.
// Doing this after the overlay to make sure changes
// in the overlay are respected.
// However, we do not process pages below of and
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment