From 790dd91e7d93b5debaf86915c34f8a73a3ff95bd Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Tue, 2 Aug 2016 17:47:16 -0400 Subject: PLT-3702 Fixed outgoing webhook creation API to properly clear error flags for public channels (#3719) --- api/webhook.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api/webhook.go') 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 { -- cgit v1.2.3-1-g7c22