fix(page-data): isolate owner API from public pages

This commit is contained in:
john
2026-07-15 10:56:22 +08:00
parent 72fd88219c
commit a07cf07861
15 changed files with 200 additions and 90 deletions
+7
View File
@@ -152,6 +152,13 @@ function assertRegisteredDatasetTables(userDataSpace, registryDatasets, usage) {
action: 'read',
});
}
if (requiredUsage.softDelete && !dataset.actions.includes('soft_delete')) {
throw Object.assign(new Error(`dataset「${dataset.name}」未开放软删除`), {
code: 'dataset_action_not_registered',
datasetName: dataset.name,
action: 'soft_delete',
});
}
const actualColumns = userDataSpace.listTableColumns(dataset.table);
if (!actualColumns.length) {
throw Object.assign(new Error(`dataset 对应表不存在:${dataset.table}`), {