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, |             portfolio=portfolio, | ||||||
|             task_order=task_order, |             task_order=task_order, | ||||||
|             form=form, |             form=form, | ||||||
|  |             user=g.current_user, | ||||||
|         ) |         ) | ||||||
|     else: |     else: | ||||||
|         raise NotFoundError("task_order") |         raise NotFoundError("task_order") | ||||||
|   | |||||||
| @@ -99,6 +99,7 @@ | |||||||
|           {{ Link("Update", "edit", onClick="edit") }} |           {{ Link("Update", "edit", onClick="edit") }} | ||||||
|           {% set invite_type = [prefix + "_invite"] %} |           {% set invite_type = [prefix + "_invite"] %} | ||||||
|  |  | ||||||
|  |           {% if not (user == task_order.creator and user == task_order[officer_type]) %} | ||||||
|             {{ |             {{ | ||||||
|               ConfirmationButton( |               ConfirmationButton( | ||||||
|                 btn_text="Resend Invitation", |                 btn_text="Resend Invitation", | ||||||
| @@ -114,6 +115,7 @@ | |||||||
|                 btn_class="icon-link", |                 btn_class="icon-link", | ||||||
|               ) |               ) | ||||||
|             }} |             }} | ||||||
|  |           {% endif %} | ||||||
|  |  | ||||||
|           {{ Link("Remove", "trash", classes="remove") }} |           {{ Link("Remove", "trash", classes="remove") }} | ||||||
|         </div> |         </div> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user