Skip to content

Commit

Permalink
[BUGFIX] Enable special workspace preview again
Browse files Browse the repository at this point in the history
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 <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
  • Loading branch information
bmack committed Feb 24, 2018
1 parent 7768d5e commit 85e59b0
Showing 1 changed file with 1 addition and 8 deletions.
Expand Up @@ -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;
}
Expand Down

0 comments on commit 85e59b0

Please sign in to comment.