If user is MO and an officer of the TO, do not render resend invite link
This commit is contained in:
		| @@ -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") | ||||
|   | ||||
| @@ -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> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user