fix: list permission (#3386)
This commit is contained in:
parent
c41def5fbb
commit
30a89fe4cb
@ -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
|
||||
? {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user