PLT-8184 Fixing LDAP test connection button for master (#7888)

Этот коммит содержится в:
Corey Hulen
2017-11-23 06:45:22 -08:00
коммит произвёл Joram Wilander
родитель 942b5b5cc0
Коммит a72b3231f0

Просмотреть файл

@@ -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