Skip to content

Commit

Permalink
Change findWhere to findAllWhere
Browse files Browse the repository at this point in the history
  • Loading branch information
beckje01 authored and fpanwaskar committed Mar 13, 2013
1 parent 94fe696 commit dd33e51
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -64,7 +64,7 @@ class SpringSamlUserDetailsService extends GormUserDetailsService implements SAM
whereClause.put "user", user
Class<?> UserRoleClass = grailsApplication.getDomainClass(authorityJoinClassName)?.clazz
UserRoleClass.withTransaction {
def auths = UserRoleClass.findWhere(whereClause).collect { it.role }
def auths = UserRoleClass.findAllWhere(whereClause).collect { it.role }

auths.each { authority ->
grantedAuthorities.add(new GrantedAuthorityImpl(authority."$authorityNameField"))
Expand Down

0 comments on commit dd33e51

Please sign in to comment.