[TYPO3-core] RFC Bug #11038: Optimize loading of frontend user groups

Rupert Germann rupi at gmx.li
Thu May 21 12:15:24 CEST 2009


hey,

please don't give a "+ 1 by reading" to such crucial changes!

the call to initUserGroups() calls fe_user->fetchGroupData() which is indeed
an expensive operation but it also sets the vars "$this->loginUser"
and "$this->gr_list".

especially gr_list is used at many places and it is not set anymore now.
One effect of this missing gr_list is, that the complete "enableFields"
stuff works differently -> means f.e. that a function like
cobj->getTreeList seems to ignore the "$depth" parameter. This is caused by
a call to $GLOBALS['TSFE']->checkEnableFields() which expects a gr_list.

please revert this change.

greets
Rupert




Oliver Hader wrote:
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=11038
> 
> Branch: Trunk
> 
> Problem:
> In TSFE frontend user groups are tried to be loaded. However, if there's
> no active frontend user or no request for simulating a frontend user
> group, it does not make any sense to call tslib_fe->initUserG roups().
> 
> Solution:
> Check whether a FE user is active or a FE user group shall be simulated
> and only then initialize the frontend user groups.
> 
> olly



More information about the TYPO3-team-core mailing list