diff --git a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar index 16b6d44c..27e139a0 100644 Binary files a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar and b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar differ diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/cooperation/dao/CoeCooperationRolePermDao.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/cooperation/dao/CoeCooperationRolePermDao.java index 20c54d10..17457c02 100644 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/cooperation/dao/CoeCooperationRolePermDao.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/cooperation/dao/CoeCooperationRolePermDao.java @@ -41,6 +41,7 @@ public class CoeCooperationRolePermDao extends DaoObject= 36) { if (targetProcessLevelModel == null) { @@ -5112,6 +5112,15 @@ public class CoeProcessLevelWeb extends ActionWeb { if (sourceProcessLevelModel == null) { return ResponseObject.newErrResponse("粘贴文件失败,源文件不存在"); } + boolean isOlderVersion = SDK.getAppAPI().getPropertyBooleanValue("com.actionsoft.apps.coe.pal", "IsOlderVersion", true); + if (!isOlderVersion){ + ResponseObject res = ResponseObject.newOkResponse(); + CoeCooperationAPIManager.getInstance().queryCooperationFileActionPerm(teamId, _uc.getUID(),sourceProcessLevelModel.getVersionId(),res); + Map data = (Map)res.getData(); + if (!data.get("havingWritePerm")){ + return ResponseObject.newErrResponse("粘贴文件失败,无文件操作权限"); + } + } // 新版不会有以下情况 // if (targetProcessLevelModel.getVersionId().equals(sourceProcessLevelModel.getVersionId())) {