use groups class

This commit is contained in:
Sebastian Sdorra
2012-08-27 07:50:32 +02:00
parent 8044107f11
commit 2030a643d4

View File

@@ -507,7 +507,7 @@ public class ScmRealm extends AuthorizingRealm
SimplePrincipalCollection collection = new SimplePrincipalCollection(); SimplePrincipalCollection collection = new SimplePrincipalCollection();
collection.add(user, NAME); collection.add(user, NAME);
collection.add(groups, NAME); collection.add(new Groups(groups), NAME);
return new SimpleAuthenticationInfo(collection, token.getPassword()); return new SimpleAuthenticationInfo(collection, token.getPassword());
} }