提交 72b4906d 编写于 作者: H horizons

fix: 自定义权限校验超级管理员处理问题修复

上级 83b405f4
......@@ -59,7 +59,7 @@ public class PermissionAdvice {
// 超级管理员放行
if (UserUtils.isRoot()) {
return true;
return joinPoint.proceed();
}
Map<String, Object> permRolesMap = redisTemplate.opsForHash().entries(GlobalConstants.BTN_PERM_ROLES_KEY);
......@@ -82,9 +82,7 @@ public class PermissionAdvice {
return Result.failed(ResultCode.ACCESS_UNAUTHORIZED);
}
// 执行正常业务逻辑
Object result = joinPoint.proceed();
return result;
return joinPoint.proceed();
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册