4.8.10 test (#2578)

* fix: auth error

* perf: refresh members

* fix: variable run

* fix: runtime check

* fix: dataset info show
This commit is contained in:
Archer
2024-08-30 10:27:07 +08:00
committed by GitHub
parent 6d00f73e91
commit 2ef98c24be
11 changed files with 78 additions and 54 deletions

View File

@@ -43,6 +43,11 @@ export const authDatasetByTmbId = async ({
if (!dataset) {
return Promise.reject(DatasetErrEnum.unExist);
}
if (String(dataset.teamId) !== teamId) {
return Promise.reject(DatasetErrEnum.unAuthDataset);
}
const isOwner = tmbPer.isOwner || String(dataset.tmbId) === String(tmbId);
// get dataset permission or inherit permission from parent folder.