From 85e59b072cfa237739fda34f891ac4d2f27a175b Mon Sep 17 00:00:00 2001 From: Benni Mack Date: Sat, 24 Feb 2018 12:20:48 +0100 Subject: [PATCH] [BUGFIX] Enable special workspace preview again The special workspace preview is now shown again, before it was only shown when a workspace preview was active. Resolves: #84031 Related: #84026 Releases: master Change-Id: I643632ab9c9e2cb1b7c26b2c3203cfec49e5d040 Reviewed-on: https://review.typo3.org/55885 Reviewed-by: Benni Mack Tested-by: Benni Mack Tested-by: TYPO3com --- .../Classes/Controller/TypoScriptFrontendController.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php b/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php index 163789b0ec08..a19ccbeff87a 100644 --- a/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php +++ b/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php @@ -1112,14 +1112,7 @@ public function determineId() $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; }