summaryrefslogtreecommitdiffstats
path: root/app/ldap.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/ldap.go')
-rw-r--r--app/ldap.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/ldap.go b/app/ldap.go
index 3d4c23a6c..a01a4aeb6 100644
--- a/app/ldap.go
+++ b/app/ldap.go
@@ -25,7 +25,7 @@ func (a *App) SyncLdap() {
}
func (a *App) TestLdap() *model.AppError {
- if ldapI := a.Ldap; ldapI != nil && utils.IsLicensed() && *utils.License().Features.LDAP && *a.Config().LdapSettings.Enable {
+ if ldapI := a.Ldap; ldapI != nil && utils.IsLicensed() && *utils.License().Features.LDAP && (*a.Config().LdapSettings.Enable || *a.Config().LdapSettings.EnableSync) {
if err := ldapI.RunTest(); err != nil {
err.StatusCode = 500
return err