Skip to content

Commit

Permalink
fix: same config role for multiple app roles
Browse files Browse the repository at this point in the history
  • Loading branch information
BettyB979 committed Jul 8, 2024
1 parent bb188dc commit 2cdd6c3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public Collection<GrantedAuthority> convert(@NonNull Jwt jwt) {

private void fillGrantedRoles(List<String> listRoles, AuthorityRoleEnum roleEnum) {

for (String role : listRoles) {
this.grantedRoles.put(role,
for (String role : listRoles ) {
this.grantedRoles.putIfAbsent(role,
new SimpleGrantedAuthority(roleEnum.securityRole()));
}

Expand Down

0 comments on commit 2cdd6c3

Please sign in to comment.