forked from Wavyzz/dolibarr
Use the non deprecated function loadRights instead of getrights
This commit is contained in:
@@ -81,7 +81,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
||||
// Load user to have $user->conf loaded (not done by default here because of NOLOGIN constant defined) and load permission if we need to use them in CSS
|
||||
/*if (empty($user->id) && !empty($_SESSION['dol_login'])) {
|
||||
$user->fetch('',$_SESSION['dol_login']);
|
||||
$user->getrights();
|
||||
$user->loadRights();
|
||||
}*/
|
||||
|
||||
|
||||
@@ -107,5 +107,3 @@ div.mainmenu.mymodule {
|
||||
.myclasscss {
|
||||
/* ... */
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user