From f382d4eb39ab1a90e2cda1d9c57b94844f413b83 Mon Sep 17 00:00:00 2001 From: zhangx1n Date: Tue, 20 May 2025 10:48:01 +0800 Subject: [PATCH] refactor: update plugin installation scope comments and default value --- api/services/feature_service.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/services/feature_service.py b/api/services/feature_service.py index 369ddf232a..a0cb7372fb 100644 --- a/api/services/feature_service.py +++ b/api/services/feature_service.py @@ -43,11 +43,11 @@ class LicenseModel(BaseModel): class PluginInstallationPermissionModel(BaseModel): # Plugin installation scope – possible values: - # PLUGIN_INSTALLATION_SCOPE_NONE: prohibit all plugin installations - # PLUGIN_INSTALLATION_SCOPE_OFFICIAL_ONLY: allow only Dify official plugins - # PLUGIN_INSTALLATION_SCOPE_OFFICIAL_AND_SPECIFIC_PARTNERS: allow official and specific partner plugins - # PLUGIN_INSTALLATION_SCOPE_ALL: allow installation of all plugins - plugin_installation_scope: str = "PLUGIN_INSTALLATION_SCOPE_ALL" + # none: prohibit all plugin installations + # official_only: allow only Dify official plugins + # official_and_specific_partners: allow official and specific partner plugins + # all: allow installation of all plugins + plugin_installation_scope: str = "all" # If True, restrict plugin installation to the marketplace only restrict_to_marketplace_only: bool = False