diff options
author | Chris <ccbrown112@gmail.com> | 2018-02-06 17:25:49 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-06 17:25:49 -0600 |
commit | 1ec295f88ca99e9423ffd91019cecf802ae3dc77 (patch) | |
tree | 05abc364fefdc6b1088bfb4a307ba11db0dc427f /app/user.go | |
parent | 034dbc07e3068c482e654b6a1a8fcbe4b01c44f3 (diff) | |
download | chat-1ec295f88ca99e9423ffd91019cecf802ae3dc77.tar.gz chat-1ec295f88ca99e9423ffd91019cecf802ae3dc77.tar.bz2 chat-1ec295f88ca99e9423ffd91019cecf802ae3dc77.zip |
add App.License, remove utils.IsLicensed / utils.License calls (#8203)
Diffstat (limited to 'app/user.go')
-rw-r--r-- | app/user.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/user.go b/app/user.go index 64e49e293..69c6d072b 100644 --- a/app/user.go +++ b/app/user.go @@ -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, |