mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
chore: headerMenu 优化
This commit is contained in:
@@ -92,7 +92,7 @@ export class AuthorityMiddleware implements IWebMiddleware {
|
||||
const pass = await this.authService.checkPermission(ctx, permission);
|
||||
if (!pass) {
|
||||
logger.info('not permission: ', ctx.req.url);
|
||||
ctx.status = 401;
|
||||
ctx.status = 200;
|
||||
ctx.body = Constants.res.permission;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user