Browse Source

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

pull/1217/head
mike12345567 5 years ago
parent
commit
0c3e287fa8
  1. 7
      packages/server/src/api/routes/webhook.js

7
packages/server/src/api/routes/webhook.js

@ -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

Loading…
Cancel
Save