mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-24 22:03:54 +00:00
fix: list permission (#3386)
This commit is contained in:
@@ -101,7 +101,7 @@ async function handler(req: ApiRequestProps<ListAppBody>): Promise<AppListItemTy
|
|||||||
? {
|
? {
|
||||||
$or: [idList, parseParentIdInMongo(parentId)]
|
$or: [idList, parseParentIdInMongo(parentId)]
|
||||||
}
|
}
|
||||||
: idList;
|
: { $or: [idList, { parentId: null }] };
|
||||||
|
|
||||||
const searchMatch = searchKey
|
const searchMatch = searchKey
|
||||||
? {
|
? {
|
||||||
|
@@ -82,7 +82,7 @@ async function handler(req: ApiRequestProps<GetDatasetListBody>) {
|
|||||||
? {
|
? {
|
||||||
$or: [idList, parseParentIdInMongo(parentId)]
|
$or: [idList, parseParentIdInMongo(parentId)]
|
||||||
}
|
}
|
||||||
: idList;
|
: { $or: [idList, { parentId: null }] };
|
||||||
|
|
||||||
const searchMatch = searchKey
|
const searchMatch = searchKey
|
||||||
? {
|
? {
|
||||||
|
Reference in New Issue
Block a user