Merge pull request '判断用户是否为专区管理员时未考虑当前用户在专区没有身份的情况' (#629) from otto/microservices:master into master

This commit is contained in:
otto 2024-08-21 16:10:17 +08:00
commit 258694dac8
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ public class CmsDocCommentServiceImpl implements ICmsDocCommentService {
return true;
}
// 判断是否为当前组织下的专区管理员
return deptId.equals(SecurityUtils.getUserIdentity().getDeptId())
return deptId.equals(SecurityUtils.getDeptId())
&& SystemRole.ZONE_ADMIN.getRoleKey().equals(SecurityUtils.getRoleKey());
}