diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-08-02 17:47:16 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-08-02 17:47:16 -0400 |
commit | 790dd91e7d93b5debaf86915c34f8a73a3ff95bd (patch) | |
tree | 82a5a627e68f32e00b252e22e06c67fa4a5048b8 | |
parent | c4a3118e9f885e92bb9b7d882898e9a51fc3be69 (diff) | |
download | chat-790dd91e7d93b5debaf86915c34f8a73a3ff95bd.tar.gz chat-790dd91e7d93b5debaf86915c34f8a73a3ff95bd.tar.bz2 chat-790dd91e7d93b5debaf86915c34f8a73a3ff95bd.zip |
PLT-3702 Fixed outgoing webhook creation API to properly clear error flags for public channels (#3719)
-rw-r--r-- | api/webhook.go | 2 |
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 { |