From a3bd039bcf69828b7443259348192f959169f0ad Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 23 Apr 2017 15:55:37 +0900 Subject: Refactoring --- src/api/api-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/api-handler.ts') 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'); } } -- cgit v1.2.3-freya