Fixed bug #11039: Simulating frontend user groups via admin panel does not work
authorOliver Hader <oliver.hader@typo3.org>
Sat, 23 May 2009 14:58:18 +0000 (14:58 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Sat, 23 May 2009 14:58:18 +0000 (14:58 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5488 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/index_ts.php

index d44bd3e..f32b81e 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2009-05-23  Oliver Hader  <oliver@typo3.org>
 
        * 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  <info@sk-typo3.de>
index ea30b52..fc23f00 100644 (file)
@@ -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');