mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-13 02:10:09 +01:00
Fix: pass additional arguments to TagSerializer for permissions
This commit is contained in:
@@ -585,6 +585,9 @@ class TagSerializer(MatchingModelSerializer, OwnedObjectSerializer):
|
|||||||
.select_related("owner")
|
.select_related("owner")
|
||||||
.annotate(document_count=Count("documents", filter=filter_q)),
|
.annotate(document_count=Count("documents", filter=filter_q)),
|
||||||
many=True,
|
many=True,
|
||||||
|
user=self.user,
|
||||||
|
full_perms=self.full_perms,
|
||||||
|
all_fields=self.all_fields,
|
||||||
context=self.context,
|
context=self.context,
|
||||||
)
|
)
|
||||||
return serializer.data
|
return serializer.data
|
||||||
|
|||||||
Reference in New Issue
Block a user