Skip to content
Snippets Groups Projects
Commit a6c32b87 authored by Yannis Barlas's avatar Yannis Barlas
Browse files

fix(middleware): allow shield errors

parent f43c1d55
No related branches found
No related tags found
2 merge requests!52Docx,!17Graphql api
......@@ -25,7 +25,11 @@ const permissions = config.has('permissions') && config.get('permissions')
const isProduction = process.env.NODE_ENV === 'production'
if (!isEmpty(permissions)) {
const authorizationMiddleware = shield(permissions, { debug: !isProduction })
const authorizationMiddleware = shield(permissions, {
allowExternalErrors: true,
debug: !isProduction,
})
middleware.push(authorizationMiddleware)
logRegistration('authorization')
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment