From a0d6ae2a54e23e96d8e504a60d6ff789a04f3369 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 15 Jan 2025 15:01:41 +1100 Subject: [PATCH] fix(plugin): Ensure plugins are only installed if not deactivated (#8893) (#8901) Co-authored-by: Oliver (cherry picked from commit fbe2131fa51bb0f002a410881bed25225981c3c6) Co-authored-by: Matthias Mair --- src/backend/InvenTree/plugin/registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/InvenTree/plugin/registry.py b/src/backend/InvenTree/plugin/registry.py index 77d5810848..c38ce43b32 100644 --- a/src/backend/InvenTree/plugin/registry.py +++ b/src/backend/InvenTree/plugin/registry.py @@ -290,7 +290,7 @@ class PluginsRegistry: collect, ) - if collect: + if collect and not settings.PLUGINS_INSTALL_DISABLED: logger.info('Collecting plugins') self.install_plugin_file() self.plugin_modules = self.collect_plugins()