mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-22 12:57:24 -05:00
Fix: pass additional arguments to TagSerializer for permissions (#11576)
This commit is contained in:
parent
128c3539d5
commit
317f239d09
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user