1
0
Fork 0
mirror of synced 2024-06-30 03:50:37 +12:00

Very minor change due to issue #1204 - wasn't allowing unauthenticated requests through.

This commit is contained in:
mike12345567 2021-02-27 10:15:05 +00:00
parent 257df940d1
commit 0c3e287fa8

View file

@ -40,10 +40,7 @@ router
authorized(BUILDER),
controller.buildSchema
)
.post(
"/api/webhooks/trigger/:instance/:id",
authorized(PermissionTypes.WEBHOOK, PermissionLevels.EXECUTE),
controller.trigger
)
// this shouldn't have authorisation, right now its always public
.post("/api/webhooks/trigger/:instance/:id", controller.trigger)
module.exports = router