Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
master
Andrew DeMaria 6 years ago
parent 8d3c0ec9a0
commit e3ea7beb96
No known key found for this signature in database
GPG Key ID: 0A3F5E91F8364EDF
  1. 9
      airsonic-main/src/main/java/org/airsonic/player/service/SecurityService.java

@ -81,7 +81,14 @@ public class SecurityService implements UserDetailsService {
List<GrantedAuthority> authorities = getGrantedAuthorities(username);
return new org.springframework.security.core.userdetails.User(username, user.getPassword(), authorities);
return new org.springframework.security.core.userdetails.User(
username,
user.getPassword(),
!user.isLdapAuthenticated(),
true,
true,
true,
authorities);
}
public List<GrantedAuthority> getGrantedAuthorities(String username) {

Loading…
Cancel
Save