diff --git a/Classes/Helper/InlineHelper.php b/Classes/Helper/InlineHelper.php index 2e4e4d14..aaf0f132 100644 --- a/Classes/Helper/InlineHelper.php +++ b/Classes/Helper/InlineHelper.php @@ -26,6 +26,7 @@ use TYPO3\CMS\Core\Context\Context; use TYPO3\CMS\Core\Database\ConnectionPool; use TYPO3\CMS\Core\Database\Query\Restriction\FrontendGroupRestriction; +use TYPO3\CMS\Core\Database\Query\Restriction\HiddenRestriction; use TYPO3\CMS\Core\Database\Query\Restriction\WorkspaceRestriction; use TYPO3\CMS\Core\Database\RelationHandler; use TYPO3\CMS\Core\Domain\Repository\PageRepository; @@ -271,6 +272,10 @@ public function getInlineElements( // Remove default restrictions for workspace preview in order to fetch the original record uids. if ($inWorkspacePreviewMode) { $queryBuilder->getRestrictions()->removeAll(); + } elseif ($isFrontendRequest === false) { + // In backend context we want to display hidden records. + $restrictions = $queryBuilder->getRestrictions(); + $restrictions->removeByType(HiddenRestriction::class); } if (BackendUtility::isTableWorkspaceEnabled($childTable)) {