From b3c1d6b603223ad4c60815b6eb9455445803f04e Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 9 May 2022 07:59:01 +1000 Subject: [PATCH] Fix plugin registry function so tests pass --- InvenTree/plugin/registry.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/InvenTree/plugin/registry.py b/InvenTree/plugin/registry.py index 2dc071d512..9a007307d3 100644 --- a/InvenTree/plugin/registry.py +++ b/InvenTree/plugin/registry.py @@ -89,14 +89,9 @@ class PluginsRegistry: if not plugin: return - # Check that the plugin is enabled - config = plugin.plugin_config() + plugin_func = getattr(plugin, func) - if config and config.active: - - plugin_func = getattr(plugin, func) - - return plugin_func(*args, **kwargs) + return plugin_func(*args, **kwargs) # region public functions # region loading / unloading