mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-21 17:01:19 +01:00
Fix php8.2 warnings
This commit is contained in:
@@ -39,7 +39,7 @@ if (!$user->hasRight('user', 'user', 'lire') && !$user->admin) {
|
||||
$langs->load("users");
|
||||
|
||||
$canreadperms = true;
|
||||
if (!empty($conf->global->MAIN_USE_ADVANCED_PERMS)) {
|
||||
if (getDolGlobalString('MAIN_USE_ADVANCED_PERMS')) {
|
||||
$canreadperms = ($user->admin || $user->rights->user->group_advance->read);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user