Skip to content

Commit

Permalink
[kbss-cvut/record-manager-ui#202] Fix role name in resoleRoles
Browse files Browse the repository at this point in the history
  • Loading branch information
palagdan committed Dec 11, 2024
1 parent 8a3c607 commit fad3222
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private void resolveRoles() {
user.getRoleGroup().getRoles().stream()
.map(r -> new SimpleGrantedAuthority(r.getRoleName()))
.toList());
authorities.add(new SimpleGrantedAuthority(Role.user.name()));
authorities.add(new SimpleGrantedAuthority(Role.user.getRoleName()));
}

public void eraseCredentials() {
Expand Down

0 comments on commit fad3222

Please sign in to comment.