Browse Source

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

master
mike12345567 6 years ago
parent
commit
2b11f8adfa
  1. 7
      packages/server/src/api/routes/webhook.js

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

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

Loading…
Cancel
Save