2
0
forked from Wavyzz/dolibarr

Use the non deprecated function loadRights instead of getrights

This commit is contained in:
Laurent Destailleur
2024-08-02 10:36:43 +02:00
parent 56d4a30bdf
commit f002fb4ed1
48 changed files with 67 additions and 68 deletions

View File

@@ -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 {
/* ... */
}