From: Moritz 'e1mo' Fromm Date: Thu, 27 Apr 2023 16:00:30 +0000 (+0200) Subject: Fix MixedContentTypeError in add_inbox_tags handler X-Git-Tag: v1.14.2~1^2~4^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3212%2Fhead;p=thirdparty%2Fpaperless-ngx.git Fix MixedContentTypeError in add_inbox_tags handler The fact that Tags were fetched while the `view_documenttype` permission was validated caused a MixedContentTypeError, thus the document consumptio to fail because the list of available tags could not be fetched. --- diff --git a/src/documents/signals/handlers.py b/src/documents/signals/handlers.py index 4abb772ce6..b41712a6f3 100644 --- a/src/documents/signals/handlers.py +++ b/src/documents/signals/handlers.py @@ -37,7 +37,7 @@ def add_inbox_tags(sender, document=None, logging_group=None, **kwargs): if document.owner is not None: tags = get_objects_for_user_owner_aware( document.owner, - "documents.view_documenttype", + "documents.view_tag", Tag, ) else: