diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-01-29 02:12:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-28 19:12:10 +0100 |
commit | c0015979a692b795bcf7416196bec01c375d7aa2 (patch) | |
tree | 482f23fde88df51f20530b394358b7af5a50e141 /routers/web/repo | |
parent | 78e6b21c1a4c9867dd3054d6c167cc80407b020d (diff) | |
download | gitea-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.go | 2 |
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) { |