If user is MO and an officer of the TO, do not render resend invite link

This commit is contained in:
Montana 2019-04-02 13:46:45 -04:00
parent 575cfce5e4
commit 92302b2a22
2 changed files with 18 additions and 15 deletions

View File

@ -231,6 +231,7 @@ def task_order_invitations(portfolio_id, task_order_id):
portfolio=portfolio,
task_order=task_order,
form=form,
user=g.current_user,
)
else:
raise NotFoundError("task_order")

View File

@ -99,6 +99,7 @@
{{ Link("Update", "edit", onClick="edit") }}
{% set invite_type = [prefix + "_invite"] %}
{% if not (user == task_order.creator and user == task_order[officer_type]) %}
{{
ConfirmationButton(
btn_text="Resend Invitation",
@ -114,6 +115,7 @@
btn_class="icon-link",
)
}}
{% endif %}
{{ Link("Remove", "trash", classes="remove") }}
</div>