diff options
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 |
commit | ff94c9d11e5121ca61acac523fcc2a77757b5114 (patch) | |
tree | eec458b3f31e70f6c4c93d3ddb81818d8127e703 /archaeological_operations/models.py | |
parent | 88190ec308c1b5c2366e1d1451ac141d5b6367c3 (diff) | |
download | Ishtar-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.py | 2 |
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 + [ |