From 85e777b1a9253e2fe80a431ad60294e8ac89dae6 Mon Sep 17 00:00:00 2001 From: Arnab Dutta Date: Fri, 7 Jan 2022 11:59:09 +0530 Subject: [PATCH] feat: add POST /rolePermissionsMapping for adding new rolePermissionsMapping entry #144 --- .../ca/plugin/adminui/service/user/UserManagementService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/admin-ui-plugin/src/main/java/io/jans/ca/plugin/adminui/service/user/UserManagementService.java b/plugins/admin-ui-plugin/src/main/java/io/jans/ca/plugin/adminui/service/user/UserManagementService.java index d18ce7f3349..bfe433462bd 100644 --- a/plugins/admin-ui-plugin/src/main/java/io/jans/ca/plugin/adminui/service/user/UserManagementService.java +++ b/plugins/admin-ui-plugin/src/main/java/io/jans/ca/plugin/adminui/service/user/UserManagementService.java @@ -303,10 +303,9 @@ public List removePermissionsFromRole(RolePermissionMappi private List getRolePermMapByRole(AdminConf adminConf, RolePermissionMapping rolePermissionMappingArg) throws ApplicationException { validateRolePermissionMapping(adminConf, rolePermissionMappingArg); - List roleScopeMappingList = adminConf.getDynamic().getRolePermissionMapping() + return adminConf.getDynamic().getRolePermissionMapping() .stream().filter(ele -> ele.getRole().equalsIgnoreCase(rolePermissionMappingArg.getRole())) .collect(Collectors.toList()); - return roleScopeMappingList; } private void validateRolePermissionMapping(AdminConf adminConf, RolePermissionMapping rolePermissionMappingArg) throws ApplicationException {