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,