fix 81758 发起人数据权限判断错了

This commit is contained in:
lijiarao
2024-02-07 13:47:57 +08:00
parent d20f3ee520
commit 3d27a7db63
@@ -131,7 +131,7 @@ public class LawsSpecialProjectLibraryServiceImpl extends ServiceImpl<LawsSpecia
for (LawsSpecialProjectLibrary projectLibrary : projectLibraryList) {
String createBy = projectLibrary.getCreateBy();
//管理员和创建人可以删除
if (!loginUser.getIsAdmin() && !loginUser.getId().equals(createBy)){
if (!loginUser.getIsAdmin() && !loginUser.getUsername().equals(createBy)){
throw new JeroBootException(ResultCommon.NO_PERMISSIONS_PLEASE_SELECT);
}
}