Commit 618647d4 authored by Michal Čihař's avatar Michal Čihař

Use request user for locking

We can not use authorship user as this would change lock ownership once
user accepts suggestion.
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 5f095ac5
......@@ -554,7 +554,7 @@ class Unit(models.Model, LoggerMixin):
user = request.user
# Update lock timestamp
self.translation.update_lock(user)
self.translation.update_lock(request.user)
# Store to backend
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment