From fbe2131fa51bb0f002a410881bed25225981c3c6 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Wed, 15 Jan 2025 04:46:10 +0100 Subject: [PATCH] fix(plugin): Ensure plugins are only installed if not deactivated (#8893) Co-authored-by: Oliver --- 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 19afdec371..014f41d72d 100644 --- a/src/backend/InvenTree/plugin/registry.py +++ b/src/backend/InvenTree/plugin/registry.py @@ -291,7 +291,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()