summaryrefslogtreecommitdiffstats
path: root/api/webhook.go
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2016-02-05 08:21:15 -0500
committerJoramWilander <jwawilander@gmail.com>2016-02-05 08:21:15 -0500
commit8c505e7b5cb8138e53b71ed7e0465665654a596b (patch)
tree4c89f98fc16cb9b91dd02d8244c0e0076e5a9e60 /api/webhook.go
parent8e79f12f3c6c0f8858addaf6f66ea6e88a965b65 (diff)
downloadchat-8c505e7b5cb8138e53b71ed7e0465665654a596b.tar.gz
chat-8c505e7b5cb8138e53b71ed7e0465665654a596b.tar.bz2
chat-8c505e7b5cb8138e53b71ed7e0465665654a596b.zip
Accept unsigned TLS certs for SSO and outgoing hooks, also fix delete hooks bug
Diffstat (limited to 'api/webhook.go')
-rw-r--r--api/webhook.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/webhook.go b/api/webhook.go
index 3906d09be..c0f8ea506 100644
--- a/api/webhook.go
+++ b/api/webhook.go
@@ -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