diff options
Diffstat (limited to 'app/ldap.go')
-rw-r--r-- | app/ldap.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/ldap.go b/app/ldap.go index 544905b70..a73760263 100644 --- a/app/ldap.go +++ b/app/ldap.go @@ -15,7 +15,7 @@ import ( func (a *App) SyncLdap() { a.Go(func() { - if license := a.License(); license != nil && *license.Features.LDAP && *a.Config().LdapSettings.EnableSync { + if *a.Config().LdapSettings.EnableSync { if ldapI := a.Ldap; ldapI != nil { ldapI.StartSynchronizeJob(false) } else { @@ -26,8 +26,7 @@ func (a *App) SyncLdap() { } func (a *App) TestLdap() *model.AppError { - license := a.License() - if ldapI := a.Ldap; ldapI != nil && license != nil && *license.Features.LDAP && (*a.Config().LdapSettings.Enable || *a.Config().LdapSettings.EnableSync) { + if ldapI := a.Ldap; ldapI != nil && (*a.Config().LdapSettings.Enable || *a.Config().LdapSettings.EnableSync) { if err := ldapI.RunTest(); err != nil { err.StatusCode = 500 return err |