From 97c63830ddb0e4fa38b72d919ac1ca95f4800615 Mon Sep 17 00:00:00 2001
From: chenos <chenlinxh@gmail.com>
Date: Sun, 10 Apr 2022 10:55:56 +0800
Subject: [PATCH] fix: skip permission

---
 packages/api/src/index.ts | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/packages/api/src/index.ts b/packages/api/src/index.ts
index 2c721d20e..e7d7a156f 100644
--- a/packages/api/src/index.ts
+++ b/packages/api/src/index.ts
@@ -77,12 +77,12 @@ for (const plugin of plugins) {
   }
 }
 
-api.acl.use(async (ctx, next) => {
-  ctx.permission = {
-    skip: true,
-  };
-  await next();
-});
+// api.acl.use(async (ctx, next) => {
+//   ctx.permission = {
+//     skip: true,
+//   };
+//   await next();
+// });
 
 if (process.argv.length < 3) {
   // @ts-ignore