From a72b3231f088375a4b7f26bdcb36964c28c53cbd Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Thu, 23 Nov 2017 06:45:22 -0800 Subject: PLT-8184 Fixing LDAP test connection button for master (#7888) --- app/ldap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/ldap.go') 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 -- cgit v1.2.3-1-g7c22