fix 86987 功能安全中心--分发资料--非管理员分发却报资料不可操作
This commit is contained in:
+1
-2
@@ -249,8 +249,7 @@ public class PayWorkingGroupDistributionRecordServiceImpl extends ServiceImpl<Pa
|
|||||||
throw new JeroBootException("功能安全中心项目不存在!");
|
throw new JeroBootException("功能安全中心项目不存在!");
|
||||||
}
|
}
|
||||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||||
if(!rolePermissionService.getRolePermission("fileMaintenance:distribute")
|
if(!rolePermissionService.getRolePermission("fileMaintenance:distribute")){
|
||||||
&& !Objects.equals(safetyCenter.getPrincipalId(),sysUser.getId())){
|
|
||||||
throw new JeroBootException("资料不可操作!");
|
throw new JeroBootException("资料不可操作!");
|
||||||
}
|
}
|
||||||
setRecordBySafetyCenter( payWorkingGroupDistributionRecord,s,listPayWorkingGroupDistributionRecord, byId);
|
setRecordBySafetyCenter( payWorkingGroupDistributionRecord,s,listPayWorkingGroupDistributionRecord, byId);
|
||||||
|
|||||||
Reference in New Issue
Block a user