3 次代碼提交 3ac8c2698f ... e43e5b8574

作者 SHA1 備註 提交日期
  guoyuanquan@mail.taiji.com.cn e43e5b8574 Merge branch '1.1.3-master' of http://8.130.72.63:18081/shenzhen/tjdify into 1.1.3-master 3 月之前
  guoyuanquan@mail.taiji.com.cn c75ac28641 其他部门添加文档为未审批状态 3 月之前
  guoyuanquan@mail.taiji.com.cn 1fdfe9ec27 其他部门添加文档为未审批状态 3 月之前
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/services/dataset_service.py

+ 1 - 1
api/services/dataset_service.py

@@ -1627,7 +1627,7 @@ class DocumentService:
         name: str,
         batch: str,
     ):
-        if account.current_role == TenantAccountRole.EDITOR:
+        if account.current_role == TenantAccountRole.EDITOR or account.dept_id!= dataset.dept_id:
             document = Document(
                 tenant_id=dataset.tenant_id,
                 dataset_id=dataset.id,