From 23af0f0a27fee8754f4d234c31e2da160758d5ab Mon Sep 17 00:00:00 2001 From: kira <164851225@qq.com> Date: Thu, 23 Aug 2018 13:22:30 +0800 Subject: [PATCH] update --- .../manage/signin/core/impls/SignInAccountServiceImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/au/com/royalpay/payment/manage/signin/core/impls/SignInAccountServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/signin/core/impls/SignInAccountServiceImpl.java index c6eabd65e..f874211e4 100644 --- a/src/main/java/au/com/royalpay/payment/manage/signin/core/impls/SignInAccountServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/signin/core/impls/SignInAccountServiceImpl.java @@ -264,6 +264,13 @@ public class SignInAccountServiceImpl implements SignInAccountService, Applicati account.put("client_id", client.getIntValue("client_id")); account.put("display_name", "Mock User"); account.put("role", 1); + + List funcs = permissionClientModulesService.listValidByClientId(account.getIntValue("client_id")); + List funcIds = new ArrayList<>(); + for (JSONObject func : funcs) { + funcIds.add(func.getString("module_id")); + } + account.put("available_module_ids", funcIds); return account; }