mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-14 18:46:52 +01:00
Fix: pass additional arguments to TagSerializer for permissions (#11576)
This commit is contained in:
parent
128c3539d5
commit
317f239d09
1 changed files with 3 additions and 0 deletions
|
|
@ -585,6 +585,9 @@ class TagSerializer(MatchingModelSerializer, OwnedObjectSerializer):
|
|||
.select_related("owner")
|
||||
.annotate(document_count=Count("documents", filter=filter_q)),
|
||||
many=True,
|
||||
user=self.user,
|
||||
full_perms=self.full_perms,
|
||||
all_fields=self.all_fields,
|
||||
context=self.context,
|
||||
)
|
||||
return serializer.data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue