mirror of
https://github.com/langgenius/dify.git
synced 2025-10-19 12:53:34 +00:00
fix: correct plugin indentation (#23228)
This commit is contained in:
parent
a82b55005b
commit
9400832b2b
@ -508,10 +508,10 @@ class BuiltinToolManageService:
|
|||||||
oauth_params = encrypter.decrypt(user_client.oauth_params)
|
oauth_params = encrypter.decrypt(user_client.oauth_params)
|
||||||
return oauth_params
|
return oauth_params
|
||||||
|
|
||||||
# only verified provider can use custom oauth client
|
# only verified provider can use official oauth client
|
||||||
is_verified = not isinstance(provider, PluginToolProviderController) or PluginService.is_plugin_verified(
|
is_verified = not isinstance(
|
||||||
tenant_id, provider.plugin_unique_identifier
|
provider_controller, PluginToolProviderController
|
||||||
)
|
) or PluginService.is_plugin_verified(tenant_id, provider_controller.plugin_unique_identifier)
|
||||||
if not is_verified:
|
if not is_verified:
|
||||||
return oauth_params
|
return oauth_params
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user