From: Oliver Hader Date: Sat, 23 May 2009 14:58:18 +0000 (+0000) Subject: Fixed bug #11039: Simulating frontend user groups via admin panel does not work X-Git-Tag: TYPO3_4-3-0alpha3~3 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/c79fb138f80b7dda05c573b3e563b1c7b01cb15a Fixed bug #11039: Simulating frontend user groups via admin panel does not work git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5488 709f56b5-9817-0410-a4d7-c38de5d9e867 --- diff --git a/ChangeLog b/ChangeLog index d44bd3e4962b..f32b81e00c23 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2009-05-23 Oliver Hader * Follow-up to #10597: Faulty call to frontend editing instance instead of admin panel + * Fixed bug #11039: Simulating frontend user groups via admin panel does not work * Cleanup: Fixed formatting issues in t3lib PHP files 2009-05-22 Steffen Kamper diff --git a/typo3/sysext/cms/tslib/index_ts.php b/typo3/sysext/cms/tslib/index_ts.php index ea30b52dbf3d..fc23f00d8e70 100644 --- a/typo3/sysext/cms/tslib/index_ts.php +++ b/typo3/sysext/cms/tslib/index_ts.php @@ -302,6 +302,11 @@ $TSFE->workspacePreviewInit(); // After this point we have an array, $page in TSFE, which is the page-record of the current page, $id // ***************************************** $TT->push('Process ID',''); + // Initialize admin panel since simulation settings are required here: + if ($TSFE->beUserLogin) { + $BE_USER->initializeAdminPanel(); + } + $TSFE->checkAlternativeIdMethods(); $TSFE->clear_preview(); $TSFE->determineId(); @@ -325,7 +330,6 @@ $TT->pull(); // Admin Panel & Frontend editing // ***************************************** if ($TSFE->beUserLogin) { - $BE_USER->initializeAdminPanel(); $BE_USER->initializeFrontendEdit(); if ($BE_USER->adminPanel instanceof tslib_AdminPanel) { $LANG = t3lib_div::makeInstance('language');