2
0
forked from Wavyzz/dolibarr

update code toward php8 compliance

This commit is contained in:
Philippe GRAND
2022-09-10 11:14:25 +02:00
parent a2b8dd446b
commit c8a70ba221
5 changed files with 5 additions and 5 deletions

View File

@@ -421,7 +421,7 @@ function restrictedArea(User $user, $features, $objectid = 0, $tableandshare = '
}
if ($feature == 'societe') {
if (empty($user->rights->societe->lire) && empty($user->rights->fournisseur->lire)) {
if (!$user->hasRight('societe', 'lire') && empty($user->rights->fournisseur->lire)) {
$readok = 0;
$nbko++;
}