mirror of
https://github.com/FriendsOfTYPO3/feedit.git
synced 2024-12-03 18:26:09 +01:00
Merge pull request #19 from FriendsOfTYPO3/enableOnlyForActiveAdmPanel
[TASK] Only render if admPanel is active
This commit is contained in:
commit
652ea1b1ce
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue