根据pid获取下属子文件接口权限相关内容调整

This commit is contained in:
anhc 2022-07-05 20:06:07 +08:00
parent 24947ddcb7
commit a8b8bd3ba3
3 changed files with 4 additions and 2 deletions

View File

@ -647,7 +647,7 @@ public class CoeCooperationAPIManager {
havingBatchPerm = userOperatePermission.contains(CoeCooperationConst.ACTION_BATCH);
}
ro.put("isOlderVersion", !isOlderVersion);//
ro.put("isOlderVersion", isOlderVersion);//
ro.put("havingCreatePerm", havingCreatePerm);// 新增流程权限
ro.put("havingBatchPerm", havingBatchPerm);// 批量操作
Set<String> dataVisitablePermission = CooperationCache.getUserDataVisitablePermission(teamId, userId,true);

View File

@ -3,6 +3,7 @@ package com.actionsoft.apps.coe.pal.pal.repository.web;
import com.actionsoft.apps.AppPlatformConfig;
import com.actionsoft.apps.AppsConst;
import com.actionsoft.apps.coe.pal.cooperation.CoeCooperationAPIManager;
import com.actionsoft.apps.coe.pal.cooperation.cache.CooperationCache;
import com.actionsoft.apps.coe.pal.log.CoEOpLogAPI;
import com.actionsoft.apps.coe.pal.log.CoEOpLogConst;
import com.actionsoft.apps.coe.pal.pal.repository.util.DiagramsUtil;
@ -8862,7 +8863,8 @@ public class CoeProcessLevelWeb extends ActionWeb {
JSONArray repositoryPathData = CoeProcessLevelUtil.getRepositoryPath(id);
if (UtilString.isNotEmpty(teamId)) {
JSONArray tempArr = new JSONArray();
List<String> permVerIds = CoeCooperationAPIManager.getInstance().queryCooperationRoleDataPermByTeamUser(teamId, _uc.getUID());
// List<String> permVerIds = CoeCooperationAPIManager.getInstance().queryCooperationRoleDataPermByTeamUser(teamId, _uc.getUID());
Set<String> permVerIds = CooperationCache.getUserDataVisitablePermission(teamId, _uc.getUID(), false);
for (int i = 0; i < repositoryPathData.size(); i++) {
JSONObject currObj = repositoryPathData.getJSONObject(i);
String pathId = currObj.getString("id");