Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into 14.0

This commit is contained in:
Laurent Destailleur 2022-11-23 11:58:46 +01:00
commit c9930ee6ce

View File

@ -1141,7 +1141,7 @@ class Thirdparties extends DolibarrApi
*/ */
public function getCompanyBankAccount($id) public function getCompanyBankAccount($id)
{ {
if (!DolibarrApiAccess::$user->rights->facture->lire) { if (!DolibarrApiAccess::$user->rights->societe->lire) {
throw new RestException(401); throw new RestException(401);
} }
if (empty($id)) { if (empty($id)) {