From e0c2dd0c3cfdbd2d3d97ce94fc239c87b47f0063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean=20Traull=C3=A9?= Date: Sun, 26 Aug 2018 21:57:07 +0200 Subject: [PATCH] Fix of an oversight when swapping parameters --- htdocs/societe/class/api_thirdparties.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe/class/api_thirdparties.class.php b/htdocs/societe/class/api_thirdparties.class.php index 83d9053a7fa..a4bd7d4a5c3 100644 --- a/htdocs/societe/class/api_thirdparties.class.php +++ b/htdocs/societe/class/api_thirdparties.class.php @@ -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); }