summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-09-24 10:33:07 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-09-24 10:33:07 +0200
commitb953270cbfdb91973e6aa786214a62a2cb514c6e (patch)
treeaff85c928066d444a8639daf6dd1c52d38e6c7dc /archaeological_operations/models.py
parent98e48e1fef5fb40c5868680781298db838f0a8cd (diff)
downloadIshtar-b953270cbfdb91973e6aa786214a62a2cb514c6e.tar.bz2
Ishtar-b953270cbfdb91973e6aa786214a62a2cb514c6e.zip
Allow own locker to edit their locks
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 19e528de1..d826d3c79 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -1324,7 +1324,7 @@ class Operation(ClosedItem, DocumentItem, BaseHistorizedItem, QRCodeItem,
actions = super(Operation, self).get_extra_actions(request)
can_add_cr = self.can_do(request, 'add_contextrecord')
- if can_add_cr and not self.locked:
+ if can_add_cr and not self.is_locked(request.user):
actions += [
(reverse('operation-qa-contextrecord', args=[self.pk]),
_("Add context record"), "fa fa-plus",