Skip to content

Commit

Permalink
Provide roles types of current user - fix NPE #78
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimbasko committed Nov 14, 2019
1 parent ab15752 commit 605431b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 605431b

Please sign in to comment.