Skip to content

Commit 897145c

Browse files
author
pedro
committed
fix:修复权限查找的条件
1 parent 027aebb commit 897145c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/jwt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ async function groupRequired(ctx: RouterContext, next: () => Promise<any>) {
374374
const endpoint = `${ctx.method} ${routeName}`;
375375
const { auth, module } = routeMetaInfo.get(endpoint);
376376
const item = await ctx.manager.authModel.findOne({
377-
where: { auth, module }
377+
where: { auth, module, group_id: groupId }
378378
});
379379
// console.log(item);
380380
if (item) {

0 commit comments

Comments
 (0)