平台件-去掉法规清单删除权限

This commit is contained in:
zhn
2023-09-26 14:36:50 +08:00
parent 0b13dfb42b
commit ed0d0725b9
@@ -682,13 +682,13 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
public void deleteById(String id, String projectLibraryId, String cut) {
LoginUser currentUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
int isProjectRole = this.checkUserRole(projectLibraryId, currentUser.getId(), "");
if (!ProjectRoleEnum.STUDIO_ENGINEER.getValue().equals(String.valueOf(isProjectRole))) {
if (CutEnum.CN.getValue().equals(cut)) {
throw new JeroBootException("该用户没有删除权限");
} else {
throw new JeroBootException("The user has no deletion permission");
}
}
// if (!ProjectRoleEnum.STUDIO_ENGINEER.getValue().equals(String.valueOf(isProjectRole))) {
// if (CutEnum.CN.getValue().equals(cut)) {
// throw new JeroBootException("该用户没有删除权限");
// } else {
// throw new JeroBootException("The user has no deletion permission");
// }
// }
//更新log
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
@@ -734,13 +734,13 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
}
LoginUser currentUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
int isProjectRole = this.checkUserRole(projectLibraryId, currentUser.getId(), "");
if (!ProjectRoleEnum.STUDIO_ENGINEER.getValue().equals(String.valueOf(isProjectRole))) {
if (CutEnum.CN.getValue().equals(cut)) {
throw new JeroBootException("该用户没有删除权限");
} else {
throw new JeroBootException("The user has no deletion permission");
}
}
// if (!ProjectRoleEnum.STUDIO_ENGINEER.getValue().equals(String.valueOf(isProjectRole))) {
// if (CutEnum.CN.getValue().equals(cut)) {
// throw new JeroBootException("该用户没有删除权限");
// } else {
// throw new JeroBootException("The user has no deletion permission");
// }
// }
//更新log
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();