mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-16 06:21:28 +01:00
Fix: Access to category of third party
This commit is contained in:
@@ -1251,7 +1251,7 @@ function restrictedArea($user, $feature='societe', $objectid=0, $dbtablename='')
|
||||
{
|
||||
if (! $user->rights->fournisseur->commande->lire) $readok=0;
|
||||
}
|
||||
else
|
||||
else if (! empty($features))
|
||||
{
|
||||
if (! $user->rights->$feature->lire) $readok=0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user