diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-02-04 16:51:13 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-02-19 14:45:56 +0100 |
commit | 19a3b847eee4788dc4e933be2cb5172c29ebe3fd (patch) | |
tree | d1c5881d2169865a0a29072283739a027ea9c583 /archaeological_operations/views.py | |
parent | 6d690a9d3a873d98bb0da72a2b7e860b4dc3bbd3 (diff) | |
download | Ishtar-19a3b847eee4788dc4e933be2cb5172c29ebe3fd.tar.bz2 Ishtar-19a3b847eee4788dc4e933be2cb5172c29ebe3fd.zip |
🐛 operation wizard: do not filter preventive tabs when no file permission is available (refs #6068)
Diffstat (limited to 'archaeological_operations/views.py')
-rw-r--r-- | archaeological_operations/views.py | 48 |
1 files changed, 20 insertions, 28 deletions
diff --git a/archaeological_operations/views.py b/archaeological_operations/views.py index db5721be7..b55efb620 100644 --- a/archaeological_operations/views.py +++ b/archaeological_operations/views.py @@ -208,21 +208,17 @@ ope_crea_condition_dict = { models.OperationType, "operation_type", ), - "preventive-operation_creation": get_check_files_for_operation( - wizards.is_preventive( - "general-operation_creation", - models.OperationType, - "operation_type", - "prev_excavation", - ) + "preventive-operation_creation": wizards.is_preventive( + "general-operation_creation", + models.OperationType, + "operation_type", + "prev_excavation", ), - "preventivediag-operation_creation": get_check_files_for_operation( - wizards.is_preventive( - "general-operation_creation", - models.OperationType, - "operation_type", - "arch_diagnostic", - ) + "preventivediag-operation_creation": wizards.is_preventive( + "general-operation_creation", + models.OperationType, + "operation_type", + "arch_diagnostic", ), "parcelsgeneral-operation_creation": wizards.has_associated_file( "filechoice-operation_creation", negate=True @@ -250,21 +246,17 @@ operation_modif_wizard_steps = [ ope_modif_condition_dict = { - "preventive-operation_modification": get_check_files_for_operation( - wizards.is_preventive( - "general-operation_modification", - models.OperationType, - "operation_type", - "prev_excavation", - ) + "preventive-operation_modification": wizards.is_preventive( + "general-operation_modification", + models.OperationType, + "operation_type", + "prev_excavation", ), - "preventivediag-operation_modification": get_check_files_for_operation( - wizards.is_preventive( - "general-operation_modification", - models.OperationType, - "operation_type", - "arch_diagnostic", - ) + "preventivediag-operation_modification": wizards.is_preventive( + "general-operation_modification", + models.OperationType, + "operation_type", + "arch_diagnostic", ), "judiciary-operation_modification": wizards.is_judiciary( "general-operation_modification", |