Bug #20396
closedSimulating frontend user groups via admin panel does not work
0%
Description
The admin panel has a functionality to simulate frontend user groups (Admin Panel > Preview). However, the submitted value is not set corretly to BE_USER->uc and the simulation does not work at all.
(issue imported from #M11039)
Files
Updated by Niels Fröhling over 15 years ago
The trigger-code for the preview is in:
typo3/sysext/cms/tslib/class.tslib_fe.php: 792 determineId()
All the involvement of the preview-options in page-rendering happens there, I'm looking for the failure there, maybe I find an easy fix.
Updated by Niels Fröhling over 15 years ago
$GLOBALS['BE_USER']->frontendEdit
Is not set [isset is false] when entering the function ...
Updated by Niels Fröhling over 15 years ago
Okay, the reason is priority-inversion:
typo3/sysext/cms/tslib/index_ts.php: 317+
"$TSFE->determineId()" is called before "$BE_USER->initializeFrontendEdit()"
In 4.2.0 the order was inversed:
typo3/sysext/cms/tslib/index_ts.php: 226+
"t3lib_div::makeInstance('t3lib_tsfeBeUserAuth')" was called before "$TSFE->determineId()"
I don't know if per-se the FE-init block can be moved before the workspace-preview-init. I am not so clear in which way the priorities are inter-mingled there ...
Updated by Oliver Hader over 15 years ago
Hi Niels, thanks for pointing it out. I came to the same conclusion. Since the adminPanel was extracted from tsfeBeUserAuth, it has to be initialized explicitely before TSFE->determineId().