Commit 30a89fe4 by Archer Committed by GitHub

fix: list permission (#3386)

parent c41def5f
......@@ -101,7 +101,7 @@ async function handler(req: ApiRequestProps<ListAppBody>): Promise<AppListItemTy
? {
$or: [idList, parseParentIdInMongo(parentId)]
}
: idList;
: { $or: [idList, { parentId: null }] };
const searchMatch = searchKey
? {
......
......@@ -82,7 +82,7 @@ async function handler(req: ApiRequestProps<GetDatasetListBody>) {
? {
$or: [idList, parseParentIdInMongo(parentId)]
}
: idList;
: { $or: [idList, { parentId: null }] };
const searchMatch = searchKey
? {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment