2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 03:26:45 +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 fbe2131fa51bb0f002a410881bed25225981c3c6)

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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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