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 | ff8681360e589ff3c8e63dcef6ad0d31ac8ecab8 (patch) | |
tree | aff85c928066d444a8639daf6dd1c52d38e6c7dc /archaeological_operations/models.py | |
parent | fee9b4904fee90077cdb73ecddc130288ba0ab21 (diff) | |
download | Ishtar-ff8681360e589ff3c8e63dcef6ad0d31ac8ecab8.tar.bz2 Ishtar-ff8681360e589ff3c8e63dcef6ad0d31ac8ecab8.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", |