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 c5e882b218
commit 2b11f8adfa
1 changed files with 2 additions and 5 deletions

View File

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