Bug #19634 ยป tsfe_beuseruid.diff
typo3/sysext/cms/tslib/class.tslib_fe.php (working copy) | ||
---|---|---|
var $loginUser=''; // Global flag indicating that a front-end user is logged in. This is set only if a user really IS logged in. The group-list may show other groups (like added by IP filter or so) even though there is no user.
|
||
var $gr_list=''; // (RO=readonly) The group list, sorted numerically. Group '0,-1' is the default group, but other groups may be added by other means than a user being logged in though...
|
||
var $beUserLogin=''; // Flag that indicates if a Backend user is logged in!
|
||
var $beUserUid = 0; // UID of Backend user if logged in
|
||
var $workspacePreview=''; // Integer, that indicates which workspace is being previewed.
|
||
var $loginAllowedInBranch = TRUE; // Shows whether logins are allowed in branch
|
||
var $ADMCMD_preview_BEUSER_uid = 0; // Integer, set to backend user ID to initialize when keyword-based preview is used.
|
typo3/sysext/cms/tslib/index_ts.php (working copy) | ||
---|---|---|
if ($BE_USER->user['uid']) {
|
||
$BE_USER->fetchGroupData();
|
||
$TSFE->beUserLogin = 1;
|
||
$TSFE->beUserUid = $BE_USER->user['uid'];
|
||
}
|
||
if ($BE_USER->checkLockToIP() && $BE_USER->checkBackendAccessSettingsFromInitPhp() && $BE_USER->user['uid']) {
|
||
$BE_USER->initializeFrontendEdit();
|
||
... | ... | |
if ($BE_USER->user['uid']) {
|
||
$BE_USER->fetchGroupData();
|
||
$TSFE->beUserLogin = 1;
|
||
$TSFE->beUserUid = $BE_USER->user['uid'];
|
||
} else {
|
||
$BE_USER = '';
|
||
$TSFE->beUserLogin = 0;
|
||
... | ... | |
// Remove user
|
||
unset($BE_USER);
|
||
$TSFE->beUserLogin = 0;
|
||
$TSFE->beUserUid = 0;
|
||
|
||
// Re-evaluate the page-id.
|
||
$TSFE->checkAlternativeIdMethods();
|
||
$TSFE->clear_preview();
|