Allow plugin load in shell (#6195)

This commit is contained in:
Oliver 2024-01-11 01:09:48 +11:00 committed by GitHub
parent 4f4852e2e7
commit 5135d6b5d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ class PluginAppConfig(AppConfig):
if not isInMainThread():
return
if not canAppAccessDatabase(allow_test=True, allow_plugins=True):
if not canAppAccessDatabase(allow_test=True, allow_plugins=True, allow_shell=True):
logger.info("Skipping plugin loading sequence") # pragma: no cover
else:
logger.info('Loading InvenTree plugins')