master
kira 6 years ago
parent 1dd8dcd8f6
commit 23af0f0a27

@ -264,6 +264,13 @@ public class SignInAccountServiceImpl implements SignInAccountService, Applicati
account.put("client_id", client.getIntValue("client_id")); account.put("client_id", client.getIntValue("client_id"));
account.put("display_name", "Mock User"); account.put("display_name", "Mock User");
account.put("role", 1); account.put("role", 1);
List<JSONObject> funcs = permissionClientModulesService.listValidByClientId(account.getIntValue("client_id"));
List<String> funcIds = new ArrayList<>();
for (JSONObject func : funcs) {
funcIds.add(func.getString("module_id"));
}
account.put("available_module_ids", funcIds);
return account; return account;
} }

Loading…
Cancel
Save