mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 12:35:46 +00:00
Fix plugin registry function so tests pass
This commit is contained in:
@ -89,11 +89,6 @@ class PluginsRegistry:
|
|||||||
if not plugin:
|
if not plugin:
|
||||||
return
|
return
|
||||||
|
|
||||||
# Check that the plugin is enabled
|
|
||||||
config = plugin.plugin_config()
|
|
||||||
|
|
||||||
if config and config.active:
|
|
||||||
|
|
||||||
plugin_func = getattr(plugin, func)
|
plugin_func = getattr(plugin, func)
|
||||||
|
|
||||||
return plugin_func(*args, **kwargs)
|
return plugin_func(*args, **kwargs)
|
||||||
|
Reference in New Issue
Block a user