Fix for plugin setting not working: (#4032)

- Always allow plugin API URLs
This commit is contained in:
Oliver 2022-12-08 23:26:55 +11:00 committed by GitHub
parent 6b659ba22f
commit 0d00289b35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))
)