浏览代码

组织管理员,组织列表

lyhzzz 1 年之前
父节点
当前提交
0f5cfdaa3d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/fdkankan/fusion/service/impl/TmDepartmentServiceImpl.java

+ 1 - 1
src/main/java/com/fdkankan/fusion/service/impl/TmDepartmentServiceImpl.java

@@ -118,7 +118,7 @@ public class TmDepartmentServiceImpl extends ServiceImpl<ITmDepartmentMapper, Tm
         if(tmUserRoles.size() >0){
         if(tmUserRoles.size() >0){
             TmUserRole tmUserRole = tmUserRoles.get(0);
             TmUserRole tmUserRole = tmUserRoles.get(0);
             TmRole tmRole = tmRoleService.getById(tmUserRole.getRoleId());
             TmRole tmRole = tmRoleService.getById(tmUserRole.getRoleId());
-            if(tmRole != null && tmRole.getRoleKey().equals("admin-ordinary")){
+            if(tmRole != null && (tmRole.getRoleKey().equals("admin-ordinary") || tmRole.getRoleKey().equals("admin-dept"))){
                 return Arrays.asList(this.getById(tmUser.getDeptId()));
                 return Arrays.asList(this.getById(tmUser.getDeptId()));
             }
             }
         }
         }