Update api_thirdparties.class.php
This commit is contained in:
parent
e0c2dd0c3c
commit
998dca9b9f
@ -1128,8 +1128,7 @@ class Thirdparties extends DolibarrApi
|
||||
|
||||
$account = new CompanyBankAccount($this->db);
|
||||
|
||||
$account->fetchFromApi($bankaccount_id, $id);
|
||||
|
||||
$account->fetch($bankaccount_id, $id, -1, '');
|
||||
|
||||
if($account->socid != $id){
|
||||
throw new RestException(401);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user