From d62dfbccc007575dce332ff7d0fd68dda600377b Mon Sep 17 00:00:00 2001 From: luoyang Date: Wed, 1 May 2019 09:52:54 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BA=8C=E7=BA=A7=E5=95=86=E6=88=B7?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=B8=89=E7=BA=A7=E5=95=86=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../payment/manage/merchants/core/impls/ClientManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java b/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java index 21e230af6..9d399d767 100644 --- a/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java @@ -1896,7 +1896,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid JSONObject clientInfo = getClientInfo(Integer.parseInt(currentClientId)); if (clientInfo.containsKey("parent_client_id")) { int parentClientId = clientInfo.getIntValue("parent_client_id"); - if (parentClientId != client_id && !listLevel3Client(client_id).contains(parentClientId)) { + if (parentClientId != client_id && client_id!= Integer.parseInt(currentClientId) && !listLevel3Client(client_id).contains(parentClientId)) { throw new Exception("partner has no permission"); } }