Browse Source

其他部门添加文档为未审批状态

guoyuanquan@mail.taiji.com.cn 1 month ago
parent
commit
86fd6adcdd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/services/dataset_service.py

+ 1 - 1
api/services/dataset_service.py

@@ -715,7 +715,7 @@ class DatasetService:
             logging.debug(f"User {user.id} does not have permission to access dataset {dataset.id}")
             raise NoPermissionError("You do not have permission to access this dataset.")
         if user.current_role != TenantAccountRole.OWNER:
-            if user.current_role != Acc.ADMIN and dataset.created_by != user.id:
+            if user.current_role != TenantAccountRole.ADMIN and dataset.created_by != user.id:
                 logging.debug(f"User {user.id} does not have permission to access dataset {dataset.id}")
                 raise NoPermissionError("You do not have permission to access this dataset.")