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
fix(plugin_service): Add marketplace enabled check before plugin operations (#18806)
Yeuolyf6305858a5ac
diff --git a/api/services/plugin/plugin_service.py b/api/services/plugin/plugin_service.pyindex 96a07d36b95..4d213dd761b 100644--- a/api/services/plugin/plugin_service.py+++ b/api/services/plugin/plugin_service.py@@ -190,6 +190,9 @@ class PluginService:"""Upgrade plugin with marketplace"""+ if not dify_config.MARKETPLACE_ENABLED:+ raise ValueError("marketplace is not enabled")+if original_plugin_unique_identifier == new_plugin_unique_identifier:raise ValueError("you should not upgrade plugin with the same plugin")@@ -316,6 +319,9 @@ class PluginService:"""Fetch marketplace package"""+ if not dify_config.MARKETPLACE_ENABLED:+ raise ValueError("marketplace is not enabled")+manager = PluginInstallationManager()try:declaration = manager.fetch_plugin_manifest(tenant_id, plugin_unique_identifier)@@ -333,6 +339,9 @@ class PluginService:Install plugin from marketplace package files,returns installation task id"""+ if not dify_config.MARKETPLACE_ENABLED:+ raise ValueError("marketplace is not enabled")+manager = PluginInstallationManager()# check if already downloaded