summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-08-02 17:47:16 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-08-02 17:47:16 -0400
commit790dd91e7d93b5debaf86915c34f8a73a3ff95bd (patch)
tree82a5a627e68f32e00b252e22e06c67fa4a5048b8 /api
parentc4a3118e9f885e92bb9b7d882898e9a51fc3be69 (diff)
downloadchat-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)
Diffstat (limited to 'api')
-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 {