平台件-去掉法规清单删除权限
This commit is contained in:
+14
-14
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user