Commit f84b1574 authored by 若依's avatar 若依 Committed by Gitee

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

Merge pull request !87 from sproutcat/master
parents f4536d5d 0a51f7d7
......@@ -79,6 +79,9 @@ public class DataScopeAspect
}
// 获取当前的用户
LoginUser loginUser = SpringUtils.getBean(TokenService.class).getLoginUser(ServletUtils.getRequest());
if (loginUser == null) {
return;
}
SysUser currentUser = loginUser.getUser();
if (currentUser != null)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment