Merge pull request #3014 from ywk253100/170808_bug_fix

Return isSystem when using ldap
This commit is contained in:
Wenkai Yin 2017-08-09 18:49:49 +08:00 committed by GitHub
commit 9fc80a1731

View File

@ -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 {