mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-29 20:30:39 +00:00 
			
		
		
		
	Allow label printing when custom plugins not enabled (#5266)
- Will still allow "builtin" plugins to function
This commit is contained in:
		| @@ -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! | ||||
|   | ||||
		Reference in New Issue
	
	Block a user