Polish gh-13290
Issue gh-12533
This commit is contained in:
@@ -441,8 +441,7 @@ public class User implements UserDetails, CredentialsContainer {
|
||||
*/
|
||||
public UserBuilder authorities(Collection<? extends GrantedAuthority> authorities) {
|
||||
Assert.notNull(authorities, "authorities cannot be null");
|
||||
this.authorities.clear();
|
||||
this.authorities.addAll(authorities);
|
||||
this.authorities = new ArrayList<>(authorities);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user