diff options
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 |
commit | b953270cbfdb91973e6aa786214a62a2cb514c6e (patch) | |
tree | aff85c928066d444a8639daf6dd1c52d38e6c7dc /archaeological_operations/models.py | |
parent | 98e48e1fef5fb40c5868680781298db838f0a8cd (diff) | |
download | Ishtar-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.py | 2 |
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", |