Fix of an oversight when swapping parameters
This commit is contained in:
parent
d348ac83bb
commit
e0c2dd0c3c
@ -1131,7 +1131,7 @@ class Thirdparties extends DolibarrApi
|
||||
$account->fetchFromApi($bankaccount_id, $id);
|
||||
|
||||
|
||||
if($account->socid != $bankaccount_id){
|
||||
if($account->socid != $id){
|
||||
throw new RestException(401);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user