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; }