Allow label printing when custom plugins not enabled (#5266)

- Will still allow "builtin" plugins to function
This commit is contained in:
Oliver 2023-07-18 10:34:50 +10:00 committed by GitHub
parent 5862c70b24
commit 7a8e59305f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,5 @@
"""API functionality for the 'label' app"""
from django.conf import settings
from django.core.exceptions import FieldError, ValidationError
from django.http import JsonResponse
from django.urls import include, path, re_path
@ -161,9 +160,6 @@ class LabelPrintMixin(LabelFilterMixin):
- matching plugin implements the 'labels' mixin
- matching plugin is enabled
"""
if not settings.PLUGINS_ENABLED:
return None # pragma: no cover
plugin_key = request.query_params.get('plugin', None)
# No plugin provided!