diff options
Diffstat (limited to 'app/authentication.go')
-rw-r--r-- | app/authentication.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/authentication.go b/app/authentication.go index 566eac804..ef200ed2b 100644 --- a/app/authentication.go +++ b/app/authentication.go @@ -181,8 +181,7 @@ func checkUserNotDisabled(user *model.User) *model.AppError { } func (a *App) authenticateUser(user *model.User, password, mfaToken string) (*model.User, *model.AppError) { - license := a.License() - ldapAvailable := *a.Config().LdapSettings.Enable && a.Ldap != nil && license != nil && *license.Features.LDAP + ldapAvailable := *a.Config().LdapSettings.Enable && a.Ldap != nil if user.AuthService == model.USER_AUTH_SERVICE_LDAP { if !ldapAvailable { |