Update api_thirdparties.class.php

This commit is contained in:
Laurent Destailleur 2018-08-28 02:05:37 +02:00 committed by GitHub
parent e0c2dd0c3c
commit 998dca9b9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);