Do not show edit TO button if user does not have perms or if TO is expired

This commit is contained in:
leigh-mil 2019-08-02 15:50:24 -04:00
parent 46a7702f4f
commit 4e71b6dcef

View File

@ -5,7 +5,9 @@
{% block portfolio_content %}
{% call StickyCTA(text="Task order details") %}
{% if user_can(permissions.EDIT_TASK_ORDER_DETAILS) and not task_order.is_expired %}
<a href="{{ url_for('task_orders.edit', task_order_id=task_order.id) }}" class="usa-button usa-button-secondary" type="submit">Edit</a>
{% endif %}
{% endcall %}
<div class="task-order">