Commit 1d878153 authored by Matija Obreza's avatar Matija Obreza
Browse files

Fixed incorrect conversion from role to authority

parent 92f2d40f
......@@ -165,7 +165,7 @@ public abstract class BasicUser<R extends GrantedAuthority> extends AuditedVersi
public Collection<? extends GrantedAuthority> getAuthorities() {
return getRoles().stream().map(role -> new SimpleGrantedAuthority("ROLE_" + role)).collect(Collectors.toSet());
return getRoles().stream().map(role -> new SimpleGrantedAuthority(role.getAuthority())).collect(Collectors.toSet());
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment