[TYPO3-dev] BE_USER in tca.php

Steffen Kamper steffen at dislabs.de
Tue May 15 23:18:23 CEST 2007


Hi,

i'm quite sure that this object exists in tca.php in older versions (or 
setups)

Actually i saw, that the object is not defined there. So it is difficult to 
make some special user settings.
In special we want to limit the pid to the BE_USER-settings.

A quick fix helped:
if(!is_object($GLOBALS['BE_USER']))  {
        $GLOBALS['BE_USER'] = t3lib_div::makeInstance('t3lib_beUserAuth'); 
// New backend user object
        $GLOBALS['BE_USER']->start();   // Object is initialized
        $GLOBALS['BE_USER']->backendCheckLogin(); // Checking if there's a 
user logged in
    }

but i'm wondering why the object is empty. Does something changed in last 
versions ? Is tca.php is loaded to early so before initializing of BE_USER ?
Who knows something deeper ?

thx,  vg  Steffen 






More information about the TYPO3-dev mailing list