mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 17:30:44 +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")
|
||||
.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
|
||||
|
||||
Reference in New Issue
Block a user