修复权限问题

This commit is contained in:
zjf committed 2026-09-11 18:42:16 +08:00
1 parent 26fe9834cb
commit 7fb7feea3f
12 files changed
+231 -73

No files matched your search

@@ -58,7 +58,7 @@ public class PjcloudDefaultDataScopeHandle implements DataScopeHandle {
public Boolean calcScope(DataScope dataScope) {
// 对于TOC客户端,不进行数据权限校验
PjcloudUser user = SecurityUtils.getUser();
if (UserTypeEnum.TOC.getStatus().equals(user.getUserType())) {
if (user != null && UserTypeEnum.TOC.getStatus().equals(user.getUserType())) {
return true;
}