From ff8681360e589ff3c8e63dcef6ad0d31ac8ecab8 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 24 Sep 2019 10:33:07 +0200 Subject: Allow own locker to edit their locks --- archaeological_finds/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archaeological_finds/views.py') diff --git a/archaeological_finds/views.py b/archaeological_finds/views.py index 0bb835bb7..8c787836f 100644 --- a/archaeological_finds/views.py +++ b/archaeological_finds/views.py @@ -1080,7 +1080,7 @@ class QAFindTreatmentFormView(QAItemForm): returned = super(QAFindTreatmentFormView, self).dispatch( request, *args, **kwargs) for item in self.items: - if item.locked: + if item.is_locked(request.user): return HttpResponseRedirect(reverse("qa-not-available")) return returned -- cgit v1.2.3