diff --git a/back/loaders/express.ts b/back/loaders/express.ts index 3402799d..86ddcc1f 100644 --- a/back/loaders/express.ts +++ b/back/loaders/express.ts @@ -62,7 +62,7 @@ export default ({ app }: { app: Application }) => { const keyMatch = req.path.match(/\/open\/([a-z]+)\/*/); const key = keyMatch && keyMatch[1]; if ( - doc.scopes.includes(key as any) && + (doc.scopes.includes(key as any) || doc.name === 'system') && currentToken && currentToken.expiration >= Math.round(Date.now() / 1000) ) {