mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-02 21:38:48 +00:00
Fix plugin registry function so tests pass
This commit is contained in:
parent
aed02f6f0f
commit
b3c1d6b603
@ -89,14 +89,9 @@ class PluginsRegistry:
|
|||||||
if not plugin:
|
if not plugin:
|
||||||
return
|
return
|
||||||
|
|
||||||
# Check that the plugin is enabled
|
plugin_func = getattr(plugin, func)
|
||||||
config = plugin.plugin_config()
|
|
||||||
|
|
||||||
if config and config.active:
|
return plugin_func(*args, **kwargs)
|
||||||
|
|
||||||
plugin_func = getattr(plugin, func)
|
|
||||||
|
|
||||||
return plugin_func(*args, **kwargs)
|
|
||||||
|
|
||||||
# region public functions
|
# region public functions
|
||||||
# region loading / unloading
|
# region loading / unloading
|
||||||
|
Loading…
x
Reference in New Issue
Block a user