Bug #96381 ยป Fix-frontend-preview-on-restricted-pages.diff
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php | ||
---|---|---|
*/
|
||
public function initUserGroups()
|
||
{
|
||
if ($this->isInPreviewMode() &&
|
||
$this->context->getAspect('frontend.user')->isLoggedIn() ) {
|
||
// do NOT create userAspect! Because that would overwrite the already
|
||
// existing userAspect, which was created in TYPO3\CMS\Frontend\Middleware\PreviewSimulator::process()
|
||
return;
|
||
}
|
||
$userAspect = $this->fe_user->createUserAspect((bool)$this->loginAllowedInBranch);
|
||
$this->context->setAspect('frontend.user', $userAspect);
|
||
}
|