鉴权修改
This commit is contained in:
@@ -36,7 +36,7 @@ public class SaAdminCheckRoleHandler implements SaAnnotationHandlerInterface<SaA
|
|||||||
public void checkMethod(SaAdminCheckRole annotation, Method method) {
|
public void checkMethod(SaAdminCheckRole annotation, Method method) {
|
||||||
|
|
||||||
if (StpKit.USER.isAdmin()) {
|
if (StpKit.USER.isAdmin()) {
|
||||||
log.debug("[SaAdminCheckRoleHandler] 管理员免校验: userId={}", StpUtil.getLoginId());
|
log.debug("[SaAdminCheckRoleHandler] 管理员免校验: userId={}", StpKit.USER.getLoginId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -58,6 +58,5 @@ public class SaAdminCheckRoleHandler implements SaAnnotationHandlerInterface<SaA
|
|||||||
StpKit.USER.checkRole(typeRole);
|
StpKit.USER.checkRole(typeRole);
|
||||||
}
|
}
|
||||||
|
|
||||||
log.debug("[SaAdminCheckRoleHandler] 非管理员执行角色校验: userId={}", StpKit.USER.getLoginId());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user