[BUGFIX] Enable special workspace preview again
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / Controller / TypoScriptFrontendController.php
index 163789b..a19ccbe 100644 (file)
@@ -1112,14 +1112,7 @@ class TypoScriptFrontendController implements LoggerAwareInterface
                 $this->showHiddenPage = true;
             }
             // The preview flag will be set if a backend user is in an offline workspace
-            if (
-                    (
-                        $backendUser->user['workspace_preview']
-                        || GeneralUtility::_GP('ADMCMD_view')
-                    )
-                    && $this->whichWorkspace() > 0
-                    && !GeneralUtility::_GP('ADMCMD_noBeUser')
-            ) {
+            if ($this->whichWorkspace() > 0 && !GeneralUtility::_GP('ADMCMD_noBeUser')) {
                 // Will show special preview message.
                 $this->fePreview = 2;
             }