3 Commits 3ac8c2698f ... e43e5b8574

Autore SHA1 Messaggio Data
  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 mesi fa
  guoyuanquan@mail.taiji.com.cn c75ac28641 其他部门添加文档为未审批状态 3 mesi fa
  guoyuanquan@mail.taiji.com.cn 1fdfe9ec27 其他部门添加文档为未审批状态 3 mesi fa
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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,