Merge pull request #22919 from atm-maxime/11.0

Fix API right check
This commit is contained in:
Laurent Destailleur 2022-11-22 21:40:12 +01:00 committed by GitHub
commit f2eb3c1a55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1048,7 +1048,7 @@ class Thirdparties extends DolibarrApi
{
global $db, $conf;
if (!DolibarrApiAccess::$user->rights->facture->lire) {
if (!DolibarrApiAccess::$user->rights->societe->lire) {
throw new RestException(401);
}
if (empty($id)) {