|
|
@@ -58,9 +58,9 @@ class OtPageResolver extends \TYPO3\CMS\Frontend\Middleware\PageResolver
|
|
|
|
|
|
// if the page is requested from the BE module Viewpage or FrontendEditing, it shall be displayed even if hidden
|
|
|
// a backend user shall be authenticated for this
|
|
|
- $requestedFromBE = preg_match(
|
|
|
- "/.+\/typo3\/index.php\?route=.*(Viewpage)|(FrontendEditing).*/",
|
|
|
- $_SERVER['HTTP_REFERER']
|
|
|
+ $requestedFromBE = (
|
|
|
+ preg_match("/.+\/typo3\/index.php\?route=.*(Viewpage)|(FrontendEditing).*/", $_SERVER['HTTP_REFERER']) ||
|
|
|
+ $request->getQueryParams()['frontend_editing'] === 1
|
|
|
)
|
|
|
&& $GLOBALS['BE_USER'];
|
|
|
|