fixup! (models/api) add link access reach and role

This commit is contained in:
Anthony LC
2024-09-10 16:07:43 +02:00
parent 4002a049eb
commit feabab030d

View File

@@ -358,7 +358,7 @@ class DocumentViewSet(
try:
# Add a trace that the user visited the document (this is needed to include
# the document in the user's list view)
models.LinkTrace.objects.create(
models.LinkTrace.objects.update_or_create(
document=instance,
user=self.request.user,
)