diff --git a/modules/rest-api/src/com/haulmont/addon/restapi/api/service/SecurityControllerManager.java b/modules/rest-api/src/com/haulmont/addon/restapi/api/service/SecurityControllerManager.java index 349dd79..caa30f2 100644 --- a/modules/rest-api/src/com/haulmont/addon/restapi/api/service/SecurityControllerManager.java +++ b/modules/rest-api/src/com/haulmont/addon/restapi/api/service/SecurityControllerManager.java @@ -91,6 +91,7 @@ public RolesInfo getRolesInfo() { RolesInfo rolesInfo = new RolesInfo(); rolesInfo.permissions = getPermissionInfos(); + rolesInfo.roles = new ArrayList<>(); User user = userSessionSource.getUserSession().getCurrentOrSubstitutedUser(); user.getUserRoles().forEach(userRole -> { RoleInfo roleInfo = new RoleInfo();