Accept unsigned TLS certs for SSO and outgoing hooks, also fix delete hooks bug

Этот коммит содержится в:
JoramWilander
2016-02-05 08:21:15 -05:00
родитель 8e79f12f3c
Коммит 8c505e7b5c
3 изменённых файлов: 13 добавлений и 3 удалений

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

@@ -238,7 +238,7 @@ func getOutgoingHooks(c *Context, w http.ResponseWriter, r *http.Request) {
}
func deleteOutgoingHook(c *Context, w http.ResponseWriter, r *http.Request) {
if !utils.Cfg.ServiceSettings.EnableIncomingWebhooks {
if !utils.Cfg.ServiceSettings.EnableOutgoingWebhooks {
c.Err = model.NewLocAppError("deleteOutgoingHook", "api.webhook.delete_outgoing.disabled.app_error", nil, "")
c.Err.StatusCode = http.StatusNotImplemented
return