mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
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.
This commit is contained in:
parent
f50134d76a
commit
7c18f2086e
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user