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.

fix: correct plugin indentation (#23228)

Maries9400832b2b2b
diff --git a/api/services/tools/builtin_tools_manage_service.py b/api/services/tools/builtin_tools_manage_service.py
index 841eeb4333e..da0fc58566d 100644
--- a/api/services/tools/builtin_tools_manage_service.py
+++ b/api/services/tools/builtin_tools_manage_service.py
@@ -508,10 +508,10 @@ class BuiltinToolManageService:
oauth_params = encrypter.decrypt(user_client.oauth_params)
return oauth_params
- # only verified provider can use custom oauth client
- is_verified = not isinstance(provider, PluginToolProviderController) or PluginService.is_plugin_verified(
- tenant_id, provider.plugin_unique_identifier
- )
+ # only verified provider can use official oauth client
+ is_verified = not isinstance(
+ provider_controller, PluginToolProviderController
+ ) or PluginService.is_plugin_verified(tenant_id, provider_controller.plugin_unique_identifier)
if not is_verified:
return oauth_params