Commits

Sebastian Sdorra committed 86e2a5f

use groups class

Comments (0)

Files changed (1)

scm-webapp/src/main/java/sonia/scm/security/ScmRealm.java

     SimplePrincipalCollection collection = new SimplePrincipalCollection();
 
     collection.add(user, NAME);
-    collection.add(groups, NAME);
+    collection.add(new Groups(groups), NAME);
 
     return new SimpleAuthenticationInfo(collection, token.getPassword());
   }