forked from Gitlink/microservices
Merge pull request '判断用户是否为专区管理员时未考虑当前用户在专区没有身份的情况' (#629) from otto/microservices:master into master
This commit is contained in:
commit
258694dac8
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue