mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
the first (primary) principal should be a unique identifier for the user
This commit is contained in:
@@ -540,6 +540,10 @@ public class ScmRealm extends AuthorizingRealm
|
||||
|
||||
SimplePrincipalCollection collection = new SimplePrincipalCollection();
|
||||
|
||||
/*
|
||||
* the first (primary) principal should be a unique identifier
|
||||
*/
|
||||
collection.add(user.getId(), NAME);
|
||||
collection.add(user, NAME);
|
||||
collection.add(new Groups(groups), NAME);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user