PLT-2972 Fix config Desanitaze (#3018)

Этот коммит содержится в:
enahum
2016-05-17 11:52:49 -03:00
коммит произвёл Christopher Speller
родитель 52694f676e
Коммит 50454bc81e

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

@@ -285,7 +285,7 @@ func ValidateLdapFilter(cfg *model.Config) *model.AppError {
}
func Desanitize(cfg *model.Config) {
if *cfg.LdapSettings.BindPassword == model.FAKE_SETTING {
if cfg.LdapSettings.BindPassword != nil && *cfg.LdapSettings.BindPassword == model.FAKE_SETTING {
*cfg.LdapSettings.BindPassword = *Cfg.LdapSettings.BindPassword
}