Skip to content

Commit

Permalink
fix: list permission (#3386)
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu authored Dec 13, 2024
1 parent c41def5 commit 30a89fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/app/src/pages/api/core/app/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function handler(req: ApiRequestProps<ListAppBody>): Promise<AppListItemTy
? {
$or: [idList, parseParentIdInMongo(parentId)]
}
: idList;
: { $or: [idList, { parentId: null }] };

const searchMatch = searchKey
? {
Expand Down
2 changes: 1 addition & 1 deletion projects/app/src/pages/api/core/dataset/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function handler(req: ApiRequestProps<GetDatasetListBody>) {
? {
$or: [idList, parseParentIdInMongo(parentId)]
}
: idList;
: { $or: [idList, { parentId: null }] };

const searchMatch = searchKey
? {
Expand Down

0 comments on commit 30a89fe

Please sign in to comment.