From 2674d4f03429994f621f459a2936cb7ed50e9fd7 Mon Sep 17 00:00:00 2001 From: Moritz 'e1mo' Fromm Date: Thu, 27 Apr 2023 18:00:30 +0200 Subject: [PATCH] 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. --- src/documents/signals/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/signals/handlers.py b/src/documents/signals/handlers.py index 4abb772ce..b41712a6f 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: