Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fixed permission is None (#7788)

Jyong8e311cc45cfe
diff --git a/api/services/dataset_service.py b/api/services/dataset_service.py
index ce5fa632dcf..d10df3f600b 100644
--- a/api/services/dataset_service.py
+++ b/api/services/dataset_service.py
@@ -137,7 +137,7 @@ class DatasetService:
@staticmethod
def create_empty_dataset(
- tenant_id: str, name: str, indexing_technique: Optional[str], account: Account, permission: Optional[str]
+ tenant_id: str, name: str, indexing_technique: Optional[str], account: Account, permission: Optional[str] = None
):
# check if dataset name already exists
if Dataset.query.filter_by(name=name, tenant_id=tenant_id).first():