mirror of https://github.com/Budibase/budibase.git
7 changed files with 52 additions and 27 deletions
@ -0,0 +1,9 @@ |
|||
module.exports = async (ctx, next) => { |
|||
if ( |
|||
!ctx.internal && |
|||
(!ctx.user || !ctx.user.builder || !ctx.user.builder.global) |
|||
) { |
|||
ctx.throw(403, "Builder user only endpoint.") |
|||
} |
|||
return next() |
|||
} |
|||
Loading…
Reference in new issue