2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 18:45:40 +00:00

fix(plugin): Ensure plugins are only installed if not deactivated (#8893) (#8901)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
(cherry picked from commit fbe2131fa5)

Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
github-actions[bot]
2025-01-15 15:01:41 +11:00
committed by GitHub
parent 74d8fe688e
commit a0d6ae2a54

View File

@ -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()