!87 数据权限中的空值处理

Merge pull request !87 from sproutcat/master
master
若依 4 years ago committed by Gitee
commit f84b157419
  1. 3
      ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/DataScopeAspect.java

@ -79,6 +79,9 @@ public class DataScopeAspect
} }
// 获取当前的用户 // 获取当前的用户
LoginUser loginUser = SpringUtils.getBean(TokenService.class).getLoginUser(ServletUtils.getRequest()); LoginUser loginUser = SpringUtils.getBean(TokenService.class).getLoginUser(ServletUtils.getRequest());
if (loginUser == null) {
return;
}
SysUser currentUser = loginUser.getUser(); SysUser currentUser = loginUser.getUser();
if (currentUser != null) if (currentUser != null)
{ {

Loading…
Cancel
Save