Fix calculation of top menu entry of user
This commit is contained in:
parent
90e87fc4d9
commit
2d2b95a082
@ -65,7 +65,12 @@ require_once '../../main.inc.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
||||
|
||||
// Load user to have $user->conf loaded (not done into main because of NOLOGIN constant defined)
|
||||
if (empty($user->id) && ! empty($_SESSION['dol_login'])) $user->fetch('',$_SESSION['dol_login'],'',1);
|
||||
// and permission, so we can later calculate number of top menu ($nbtopmenuentries) according to user profile.
|
||||
if (empty($user->id) && ! empty($_SESSION['dol_login']))
|
||||
{
|
||||
$user->fetch('',$_SESSION['dol_login'],'',1);
|
||||
$user->getrights();
|
||||
}
|
||||
|
||||
|
||||
// Define css type
|
||||
|
||||
@ -66,7 +66,12 @@ require_once '../../main.inc.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
||||
|
||||
// Load user to have $user->conf loaded (not done into main because of NOLOGIN constant defined)
|
||||
if (empty($user->id) && ! empty($_SESSION['dol_login'])) $user->fetch('',$_SESSION['dol_login'],'',1);
|
||||
// and permission, so we can later calculate number of top menu ($nbtopmenuentries) according to user profile.
|
||||
if (empty($user->id) && ! empty($_SESSION['dol_login']))
|
||||
{
|
||||
$user->fetch('',$_SESSION['dol_login'],'',1);
|
||||
$user->getrights();
|
||||
}
|
||||
|
||||
|
||||
// Define css type
|
||||
|
||||
Loading…
Reference in New Issue
Block a user