From 0d00289b35225bddcc41c1dd98fa54f3dacaa30d Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 8 Dec 2022 23:26:55 +1100 Subject: [PATCH] Fix for plugin setting not working: (#4032) - Always allow plugin API URLs --- InvenTree/plugin/api.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/InvenTree/plugin/api.py b/InvenTree/plugin/api.py index d507a2f3a2..108550239c 100644 --- a/InvenTree/plugin/api.py +++ b/InvenTree/plugin/api.py @@ -1,6 +1,5 @@ -"""JSON API for the plugin app.""" +"""API for the plugin app.""" -from django.conf import settings from django.urls import include, re_path from django_filters.rest_framework import DjangoFilterBackend @@ -238,7 +237,6 @@ general_plugin_api_urls = [ re_path(r'^.*$', PluginList.as_view(), name='api-plugin-list'), ] -if settings.PLUGINS_ENABLED: - plugin_api_urls.append( - re_path(r'^plugin/', include(general_plugin_api_urls)) - ) +plugin_api_urls.append( + re_path(r'^plugin/', include(general_plugin_api_urls)) +)