From bf333085a0ffb4159d8a539ba25ad7d40264cb9e Mon Sep 17 00:00:00 2001 From: zhaol <15900249928@163.com> Date: Fri, 7 Feb 2025 08:24:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=83=A8=E9=97=A8=E8=A7=86?= =?UTF-8?q?=E5=9B=BE=E5=BC=80=E6=94=BE=E6=8C=87=E5=AE=9A=E6=9D=83=E9=99=90?= =?UTF-8?q?=E4=BA=BA=E5=91=98=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PALRepositoryQueryAPIManager.java | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) 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 b3f876ec..d28463bd 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 @@ -5539,6 +5539,7 @@ 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) { @@ -5553,10 +5554,21 @@ public class PALRepositoryQueryAPIManager { if (roleId.equals(uc.getRoleModel().getId())) { return true; } - //如果当前登录用户账户包含参数内账户则允许查看 - if(depViewPer.contains(uc.getUID())){ - return true; + + try { + System.out.println("depViewPer======"+depViewPer); + if(StringUtils.isNotEmpty(depViewPer)){ + JSONArray jsonArray = JSONArray.parseArray(depViewPer); + boolean contains = jsonArray.contains(uc.getUID()); + if(contains){ + return true; + } + } + } catch (Exception e) { + e.printStackTrace(); } + + // 兼职 List adminUserMapModels = UserMapCache.getMapListOfUser(uc.getUID()); for (UserMapModel mapModel : adminUserMapModels) {