From 7a9c471f9fe61165e18bfa5cd04821b055502faf Mon Sep 17 00:00:00 2001 From: Georg Ringer Date: Sat, 19 Nov 2022 20:26:07 +0100 Subject: [PATCH] [TASK] Only render if admPanel is active --- Classes/Middleware/FrontendEditInitiator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/Middleware/FrontendEditInitiator.php b/Classes/Middleware/FrontendEditInitiator.php index 6a1c792..21e10ee 100644 --- a/Classes/Middleware/FrontendEditInitiator.php +++ b/Classes/Middleware/FrontendEditInitiator.php @@ -21,6 +21,7 @@ use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\MiddlewareInterface; use Psr\Http\Server\RequestHandlerInterface; use TYPO3\CMS\Adminpanel\Service\ConfigurationService; +use TYPO3\CMS\Adminpanel\Utility\StateUtility; use TYPO3\CMS\Backend\FrontendBackendUserAuthentication; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler; @@ -44,7 +45,7 @@ class FrontendEditInitiator implements MiddlewareInterface */ public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { - if (isset($GLOBALS['BE_USER']) && $GLOBALS['BE_USER'] instanceof FrontendBackendUserAuthentication) { + if (isset($GLOBALS['BE_USER']) && $GLOBALS['BE_USER'] instanceof FrontendBackendUserAuthentication && StateUtility::isOpen()) { $this->initializeTypoScriptFrontend( $GLOBALS['TSFE'], $request,