Do not show edit TO button if user does not have perms or if TO is expired
This commit is contained in:
parent
46a7702f4f
commit
4e71b6dcef
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user