summaryrefslogtreecommitdiffstats
path: root/routers/web/repo
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-01-29 02:12:10 +0800
committerGitHub <noreply@github.com>2023-01-28 19:12:10 +0100
commitc0015979a692b795bcf7416196bec01c375d7aa2 (patch)
tree482f23fde88df51f20530b394358b7af5a50e141 /routers/web/repo
parent78e6b21c1a4c9867dd3054d6c167cc80407b020d (diff)
downloadgitea-c0015979a692b795bcf7416196bec01c375d7aa2.tar.gz
gitea-c0015979a692b795bcf7416196bec01c375d7aa2.zip
Support system hook API (#14537)
This add system hook API
Diffstat (limited to 'routers/web/repo')
-rw-r--r--routers/web/repo/webhook.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/webhook.go b/routers/web/repo/webhook.go
index 96261af674..d3826c3f3d 100644
--- a/routers/web/repo/webhook.go
+++ b/routers/web/repo/webhook.go
@@ -591,7 +591,7 @@ func checkWebhook(ctx *context.Context) (*orgRepoCtx, *webhook.Webhook) {
} else if orCtx.OrgID > 0 {
w, err = webhook.GetWebhookByOrgID(ctx.Org.Organization.ID, ctx.ParamsInt64(":id"))
} else if orCtx.IsAdmin {
- w, err = webhook.GetSystemOrDefaultWebhook(ctx.ParamsInt64(":id"))
+ w, err = webhook.GetSystemOrDefaultWebhook(ctx, ctx.ParamsInt64(":id"))
}
if err != nil || w == nil {
if webhook.IsErrWebhookNotExist(err) {