fixup! ✨(models/api) add link access reach and role
This commit is contained in:
@@ -358,7 +358,7 @@ class DocumentViewSet(
|
|||||||
try:
|
try:
|
||||||
# Add a trace that the user visited the document (this is needed to include
|
# Add a trace that the user visited the document (this is needed to include
|
||||||
# the document in the user's list view)
|
# the document in the user's list view)
|
||||||
models.LinkTrace.objects.create(
|
models.LinkTrace.objects.update_or_create(
|
||||||
document=instance,
|
document=instance,
|
||||||
user=self.request.user,
|
user=self.request.user,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user