gitea/routers/web/admin
zeripath e9935d358c
Only send webhook events to active system webhooks and only deliver to active hooks (#19234) (#19248)
Backport #19234

There is a bug in the system webhooks whereby the active state is not checked when
webhooks are prepared and there is a bug that deactivating webhooks do not prevent
queued deliveries.

* Only add SystemWebhooks to the prepareWebhooks list if they are active
* At the time of delivery if the underlying webhook is not active mark it
as "delivered" but with a failed delivery so it does not get delivered.

Fix #19220

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-03-29 14:12:56 +02:00
..
admin.go Handle email address not exist (#19089) (#19121) 2022-03-19 11:35:23 +00:00
admin_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
auths.go Fix wrong scopes caused by empty scope input (#19029) (#19145) 2022-03-21 03:13:18 +08:00
emails.go Move more model into models/user (#17826) 2021-11-28 22:11:58 +08:00
hooks.go Only send webhook events to active system webhooks and only deliver to active hooks (#19234) (#19248) 2022-03-29 14:12:56 +02:00
main_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
notice.go Move user functions into user.go (#17659) 2021-11-18 13:58:42 +08:00
orgs.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
repos.go Move keys to models/asymkey (#17917) 2021-12-10 16:14:24 +08:00
users.go Restrict email address validation (#17688) (#19085) 2022-03-14 20:51:58 +01:00
users_test.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00