diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/PALRepositoryQueryAPIManager.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/PALRepositoryQueryAPIManager.java index c86c3f65..b3f876ec 100755 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/PALRepositoryQueryAPIManager.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/PALRepositoryQueryAPIManager.java @@ -5378,10 +5378,7 @@ public class PALRepositoryQueryAPIManager { */ public String getPublishPortalHtml(UserContext uc, String uuid, String taskId, boolean checkPublish, boolean upVisit) { - //权限校验 - // if (!CoeCooperationAPIManager.getInstance().hasRepositoryPermision(uuid)) { - // return AlertWindow.getWarningMessagePage("打开失败", "无该文件查看权限"); - // } + //三员管理,文件密级权限校验 if (HighSecurityUtil.isON() && HighSecurityUtil.fileSecuritySwitch()) { @@ -5540,6 +5537,8 @@ public class PALRepositoryQueryAPIManager { } public boolean hasAccessPortalDesignerPerm(UserContext uc, PALRepositoryModel model) { + + String depViewPer = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.reportform", "Dep_View_Per"); String newBoName = "BO_ACT_PUBLISH_PERM_SCOPE"; BO bo = SDK.getBOAPI().query(newBoName).addQuery("PALVERSIONID=", model.getVersionId()).detail(); if (bo == null) { @@ -5554,6 +5553,10 @@ public class PALRepositoryQueryAPIManager { if (roleId.equals(uc.getRoleModel().getId())) { return true; } + //如果当前登录用户账户包含参数内账户则允许查看 + if(depViewPer.contains(uc.getUID())){ + return true; + } // 兼职 List adminUserMapModels = UserMapCache.getMapListOfUser(uc.getUID()); for (UserMapModel mapModel : adminUserMapModels) {