add App.License, remove utils.IsLicensed / utils.License calls (#8203)

Этот коммит содержится в:
Chris
2018-02-06 17:25:49 -06:00
коммит произвёл GitHub
родитель 034dbc07e3
Коммит 1ec295f88c
21 изменённых файлов: 56 добавлений и 48 удалений

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

@@ -374,7 +374,8 @@ func (a *App) GetUserByAuth(authData *string, authService string) (*model.User,
}
func (a *App) GetUserForLogin(loginId string, onlyLdap bool) (*model.User, *model.AppError) {
ldapAvailable := *a.Config().LdapSettings.Enable && a.Ldap != nil && utils.IsLicensed() && *utils.License().Features.LDAP
license := a.License()
ldapAvailable := *a.Config().LdapSettings.Enable && a.Ldap != nil && license != nil && *license.Features.LDAP
if result := <-a.Srv.Store.User().GetForLogin(
loginId,