1
0
Fork 0
mirror of synced 2024-07-08 15:56:23 +12:00

Fixing issue with 403 on schema endpoint due to change in middleware.

This commit is contained in:
mike12345567 2021-04-12 11:16:41 +01:00
parent 65be3e9ede
commit 9b77f4e518

View file

@ -13,7 +13,7 @@ const { AuthTypes } = require("../constants")
const ADMIN_ROLES = [BUILTIN_ROLE_IDS.ADMIN, BUILTIN_ROLE_IDS.BUILDER]
const LOCAL_PASS = new RegExp(["webhooks/trigger"].join("|"))
const LOCAL_PASS = new RegExp(["webhooks/trigger", "webhooks/schema"].join("|"))
function hasResource(ctx) {
return ctx.resourceId != null