Bug #20396
closed
Simulating frontend user groups via admin panel does not work
Added by Oliver Hader almost 15 years ago.
Updated over 13 years ago.
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
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.
$GLOBALS['BE_USER']->frontendEdit
Is not set [isset is false] when entering the function ...
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 ...
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().
Committed to SVN Trunk (rev. 5488)
Also available in: Atom
PDF