summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-11-20 10:09:18 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-02-19 14:45:55 +0100
commitff94c9d11e5121ca61acac523fcc2a77757b5114 (patch)
treeeec458b3f31e70f6c4c93d3ddb81818d8127e703 /archaeological_operations/models.py
parent88190ec308c1b5c2366e1d1451ac141d5b6367c3 (diff)
downloadIshtar-ff94c9d11e5121ca61acac523fcc2a77757b5114.tar.bz2
Ishtar-ff94c9d11e5121ca61acac523fcc2a77757b5114.zip
🐛 fix model actions for specific permissions
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 84bd8ab2e..fa5abce22 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -2216,7 +2216,7 @@ class Operation(
if can_add_cr and not is_locked:
start = actions
end = []
- if actions[-1] and actions[-1][0].startswith("/document/create"):
+ if actions and actions[-1] and actions[-1][0].startswith("/document/create"):
start = actions[:-1]
end = [actions[-1]]
actions = start + [