summaryrefslogtreecommitdiffstats
path: root/api/webhook.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/webhook.go')
-rw-r--r--api/webhook.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/webhook.go b/api/webhook.go
index 5dceeddc4..d57e5be9e 100644
--- a/api/webhook.go
+++ b/api/webhook.go
@@ -209,6 +209,8 @@ func createOutgoingHook(c *Context, w http.ResponseWriter, r *http.Request) {
c.LogAudit("fail - bad channel permissions")
c.Err = model.NewLocAppError("createOutgoingHook", "api.webhook.create_outgoing.permissions.app_error", nil, "")
return
+ } else {
+ c.Err = nil
}
}
} else if len(hook.TriggerWords) == 0 {