[TASK] Remove usage of TSFE->sys_page
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / StorageRepository.php
index be9bdb3..3f552b9 100644 (file)
@@ -77,7 +77,7 @@ class StorageRepository extends AbstractRepository implements LoggerAwareInterfa
             $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
                 ->getQueryBuilderForTable($this->table);
 
-            if ($this->getEnvironmentMode() === 'FE' && !empty($GLOBALS['TSFE']->sys_page)) {
+            if ($this->getEnvironmentMode() === 'FE') {
                 $queryBuilder->setRestrictions(GeneralUtility::makeInstance(FrontendRestrictionContainer::class));
             }