mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-17 00:14:51 +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 {
|
||||
...app,
|
||||
permission: Per,
|
||||
privateApp
|
||||
private: privateApp
|
||||
};
|
||||
})
|
||||
.filter((app) => app.permission.hasReadPer);
|
||||
|
@@ -177,7 +177,7 @@ async function handler(req: ApiRequestProps<GetDatasetListBody>) {
|
||||
tmbId: dataset.tmbId,
|
||||
updateTime: dataset.updateTime,
|
||||
permission: Per,
|
||||
privateDataset
|
||||
private: privateDataset
|
||||
};
|
||||
})
|
||||
.filter((app) => app.permission.hasReadPer);
|
||||
|
Reference in New Issue
Block a user