diff options
Diffstat (limited to 'src/api/api-handler.ts')
| -rw-r--r-- | src/api/api-handler.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/api-handler.ts b/src/api/api-handler.ts index 4cde538ae1..fb603a0e2a 100644 --- a/src/api/api-handler.ts +++ b/src/api/api-handler.ts @@ -26,7 +26,7 @@ export default async (endpoint: Endpoint, req: express.Request, res: express.Res } if (ctx.app && endpoint.kind) { - if (!ctx.app.permission.some((p: any) => p === endpoint.kind)) { + if (!ctx.app.permission.some(p => p === endpoint.kind)) { return reply(403, 'ACCESS_DENIED'); } } |