mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-17 04:11:24 +01:00
return isSystem when using ldap
This commit is contained in:
parent
7fedca3a4a
commit
689994fa93
@ -98,6 +98,7 @@ func (l *Auth) Authenticate(m models.AuthModel) (*models.User, error) {
|
||||
return nil, err
|
||||
}
|
||||
u.UserID = currentUser.UserID
|
||||
u.HasAdminRole = currentUser.HasAdminRole
|
||||
} else {
|
||||
userID, err := ldapUtils.ImportUser(ldapUsers[0])
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user