mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-19 10:07:24 +00:00
fix: app/dataset list api return private flag (#3784)
This commit is contained in:
@@ -197,7 +197,7 @@ async function handler(req: ApiRequestProps<ListAppBody>): Promise<AppListItemTy
|
|||||||
return {
|
return {
|
||||||
...app,
|
...app,
|
||||||
permission: Per,
|
permission: Per,
|
||||||
privateApp
|
private: privateApp
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
.filter((app) => app.permission.hasReadPer);
|
.filter((app) => app.permission.hasReadPer);
|
||||||
|
@@ -177,7 +177,7 @@ async function handler(req: ApiRequestProps<GetDatasetListBody>) {
|
|||||||
tmbId: dataset.tmbId,
|
tmbId: dataset.tmbId,
|
||||||
updateTime: dataset.updateTime,
|
updateTime: dataset.updateTime,
|
||||||
permission: Per,
|
permission: Per,
|
||||||
privateDataset
|
private: privateDataset
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
.filter((app) => app.permission.hasReadPer);
|
.filter((app) => app.permission.hasReadPer);
|
||||||
|
Reference in New Issue
Block a user