publish 2.0.0.rc19

This commit is contained in:
曾文豪
2024-08-08 11:27:50 +08:00
parent 2c9519a35e
commit b34d9d6242
13 changed files with 30 additions and 33 deletions

View File

@@ -63,16 +63,13 @@ public class RoleAuthorityAspect {
String authority = StrUtil.join("_", classAnnotation.group(), classAnnotation.value());
RoleAuthority annotation = signature.getMethod().getAnnotation(RoleAuthority.class);
if (annotation != null) {
// 检查是否是功能点的权限
if (CollUtil.contains(authorityList, StrUtil.join("_", authority, annotation.value()))) {
return;
}
} else {
// 检查是否是菜单级别的权限
if (CollUtil.contains(authorityList, authority)) {
return;
}
if(annotation == null) {
return;
}
// 检查是否是功能点的权限
if (CollUtil.contains(authorityList, StrUtil.join("_", authority, annotation.value()))) {
return;
}
throw new ApiException(403, "您无权访问");