Add check for user perms to show add TO button

This commit is contained in:
leigh-mil 2019-06-20 11:00:43 -04:00
parent 7814173d72
commit a3a62b39fd

View File

@ -96,7 +96,9 @@
{% call StickyCTA(text="Funding") %} {% call StickyCTA(text="Funding") %}
<a href="{{ url_for("task_orders.edit", portfolio_id=portfolio.id) }}" class="usa-button usa-button-primary" type="submit">Start a new task order</a> {% if user_can(permissions.CREATE_TASK_ORDER) %}
<a href="{{ url_for("task_orders.edit", portfolio_id=portfolio.id) }}" class="usa-button usa-button-primary" type="submit">Start a new task order</a>
{% endif %}
{% endcall %} {% endcall %}
{% include "fragments/flash.html" %} {% include "fragments/flash.html" %}