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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
delete end_user check (#26187)
Jyong960bb8a9b442
diff --git a/api/controllers/service_api/dataset/document.py b/api/controllers/service_api/dataset/document.pyindex d26c64fe36e..e01bc8940ca 100644--- a/api/controllers/service_api/dataset/document.py+++ b/api/controllers/service_api/dataset/document.py@@ -30,7 +30,6 @@ from extensions.ext_database import dbfrom fields.document_fields import document_fields, document_status_fieldsfrom libs.login import current_userfrom models.dataset import Dataset, Document, DocumentSegment-from models.model import EndUserfrom services.dataset_service import DatasetService, DocumentServicefrom services.entities.knowledge_entities.knowledge_entities import KnowledgeConfigfrom services.file_service import FileService@@ -311,8 +310,6 @@ class DocumentAddByFileApi(DatasetApiResource):if not file.filename:raise FilenameNotExistsError- if not isinstance(current_user, EndUser):- raise ValueError("Invalid user account")if not current_user:raise ValueError("current_user is required")upload_file = FileService(db.engine).upload_file(@@ -406,9 +403,6 @@ class DocumentUpdateByFileApi(DatasetApiResource):if not current_user:raise ValueError("current_user is required")- if not isinstance(current_user, EndUser):- raise ValueError("Invalid user account")-try:upload_file = FileService(db.engine).upload_file(filename=file.filename,