Skip to content

Commit

Permalink
#12: fixed small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosanchez committed Jan 15, 2014
1 parent e8beef3 commit 9e02088
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -20,8 +20,8 @@ class DefaultOauthUserDetailsService implements OauthUserDetailsService {

try {
userDetails = userDetailsService.loadUserByUsername userProfile.id
userDetails.authorities.addAll defaultRoles
oauthUser = new OauthUser(userDetails.username, userDetails.password, userDetails.authorities, userProfile)
Collection<GrantedAuthority> allRoles = userDetails.authorities + defaultRoles
oauthUser = new OauthUser(userDetails.username, userDetails.password, allRoles, userProfile)
} catch (exception) {
oauthUser = new OauthUser(userProfile.id, 'N/A', defaultRoles, userProfile)
}
Expand Down

0 comments on commit 9e02088

Please sign in to comment.