[BUGFIX] dont set fePreview=2 with ADMCMD_noBeUser 60/39860/2
authorPeter Niederlag <peter.niederlag@typo3.org>
Wed, 19 Feb 2014 16:17:04 +0000 (17:17 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Mon, 1 Jun 2015 12:42:14 +0000 (14:42 +0200)
commit57860a20a97bb06e1b5c022db081e75af97e2404
tree25d4e5a8205c780880d5b42f49a768f0622e6ea0
parente881769d548634aaa2831ecddb5af91a2cfaa770
[BUGFIX] dont set fePreview=2 with ADMCMD_noBeUser

The workspace preview adds the GET parameter ADMCMD_noBeUser
when requesting the frame for live preview.

$GLOBALS[BE_USER] is unset in index_ts.php when seeing ADMCMD_noBeUser.

In TypoScriptFrontendController fePreview=2 must not be set when
ADMCMD_noBeUser parameter is present to prevent fatal errors on
calling methods on a non-existent $GLOBALS[BE_USER]

Releases: master, 6.2
Resolves: #30643
Change-Id: Idff7febcaaa8b87bd65a993b1860ad378e09b22f
Reviewed-on: http://review.typo3.org/39860
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php