From 30a89fe4cbbf862bb369719baaf6d3c6c7d78d9d Mon Sep 17 00:00:00 2001 From: Archer <545436317@qq.com> Date: Fri, 13 Dec 2024 11:00:22 +0800 Subject: [PATCH] fix: list permission (#3386) --- projects/app/src/pages/api/core/app/list.ts | 2 +- projects/app/src/pages/api/core/dataset/list.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/app/src/pages/api/core/app/list.ts b/projects/app/src/pages/api/core/app/list.ts index 7f3f5ce1338a..eaee894bfbce 100644 --- a/projects/app/src/pages/api/core/app/list.ts +++ b/projects/app/src/pages/api/core/app/list.ts @@ -101,7 +101,7 @@ async function handler(req: ApiRequestProps): Promise) { ? { $or: [idList, parseParentIdInMongo(parentId)] } - : idList; + : { $or: [idList, { parentId: null }] }; const searchMatch = searchKey ? {