From 1a6ca60bd6c6a80697fa7df8d938fa50517d3bba Mon Sep 17 00:00:00 2001 From: Guo XIn <371864209@qq.com> Date: Thu, 13 Jul 2023 16:26:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=9D=83=E9=99=90=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shandan/bianmu/service/DirPermissionService.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/shandan-system/src/main/java/com/keyware/shandan/bianmu/service/DirPermissionService.java b/shandan-system/src/main/java/com/keyware/shandan/bianmu/service/DirPermissionService.java index 27ef7d0..b720ee4 100644 --- a/shandan-system/src/main/java/com/keyware/shandan/bianmu/service/DirPermissionService.java +++ b/shandan-system/src/main/java/com/keyware/shandan/bianmu/service/DirPermissionService.java @@ -232,7 +232,7 @@ public class DirPermissionService { || isDirOwnerOrgAllChildUser(user, dir); } else { // 归属者为普通用户:自己可见 - return isOwnerSelf(user, dir); + return isDirOwnerOrgAllChildUser(user, dir); } } //return isDirOwnerOrgUser(user, dir) || isDirOwnerOrgAllChildUser(user, dir); @@ -251,13 +251,14 @@ public class DirPermissionService { // 归属者为部门, 当前部门所有人和直属下级部门的所有用户 return isDirOwnerOrgUser(user, dir) || isDirOwnerOrgChildUser(user, dir); } else { - if (isAdmin(userCache.get(dir.getOwnerId()))) { + /*if (isAdmin(userCache.get(dir.getOwnerId()))) { // 归属者为部门管理员:自己部门所有用户(如有2个或2个以上个部门管理员,虽然为同级,但依旧可见)可见 return isDirOwnerOrgUser(user, dir); } else { // 归属者为普通用户:自己可见 return isOwnerSelf(user, dir); - } + }*/ + return isDirOwnerOrgUser(user, dir); } }