diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-10 18:02:50 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-10 18:02:50 +0200 |
commit | 05ed481007604079612aa4b0f1f3bb8d4d35a6e5 (patch) | |
tree | f84171501c3d98df394c94fcc6d32cc3dd5c6539 /ishtar_common/models.py | |
parent | 1d5254416b11ef1010d5ac31f2a53677254c6497 (diff) | |
download | Ishtar-05ed481007604079612aa4b0f1f3bb8d4d35a6e5.tar.bz2 Ishtar-05ed481007604079612aa4b0f1f3bb8d4d35a6e5.zip |
Locks: prevent edit actions
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index bc9e68c02..f673aed85 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1825,7 +1825,7 @@ class DocumentItem(object): return actions can_add_doc = self.can_do(request, 'add_document') - if can_add_doc: + if can_add_doc and not getattr(self, "locked", False): actions = [ ( reverse("create-document") + "?{}={}".format( |