Only check LDAP attributes if auth data set (#7530)

Этот коммит содержится в:
Joram Wilander
2017-09-28 12:06:05 -04:00
коммит произвёл Corey Hulen
родитель 15b361094a
Коммит 884cf494cb

Просмотреть файл

@@ -186,6 +186,10 @@ func (api *BuiltInPluginAPI) GetLdapUserAttributes(userId string, attributes []s
return nil, err
}
if user.AuthData == nil {
return map[string]string{}, nil
}
return api.app.Ldap.GetUserAttributes(*user.AuthData, attributes)
}