From ebbb8ee081c109b4fe1d3c9c58b22b5addf11e41 Mon Sep 17 00:00:00 2001 From: Patrick Smith Date: Tue, 5 Feb 2019 08:47:05 -0500 Subject: [PATCH] Don't allow downloading Task Order documents when TO not complete --- templates/portfolios/task_orders/show.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/portfolios/task_orders/show.html b/templates/portfolios/task_orders/show.html index 2437052a..8c68c7f8 100644 --- a/templates/portfolios/task_orders/show.html +++ b/templates/portfolios/task_orders/show.html @@ -130,7 +130,7 @@ {%- endset %} {{ DocumentLink( title="Task Order Draft", - link_url=url_for('task_orders.download_summary', task_order_id=task_order.id), + link_url=all_sections_complete and url_for('task_orders.download_summary', task_order_id=task_order.id), description=description) }}