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 a4367026f..11456d69e 100644
--- a/api/webhook.go
+++ b/api/webhook.go
@@ -434,6 +434,8 @@ func incomingWebhook(c *Context, w http.ResponseWriter, r *http.Request) {
IsOAuth: false,
}
+ c.TeamId = hook.TeamId
+
if !c.HasPermissionsToChannel(pchan, "createIncomingHook") && channel.Type != model.CHANNEL_OPEN {
c.Err = model.NewLocAppError("incomingWebhook", "web.incoming_webhook.permissions.app_error", nil, "")
return