Do not check if user is a task order officer when user accepts an
invite. That functionality is deprecated for now.
This commit is contained in:
parent
c085db23d7
commit
25ad9ebcd6
@ -23,12 +23,6 @@ def send_invite_email(owner_name, token, new_member_email):
|
||||
def accept_invitation(portfolio_token):
|
||||
invite = PortfolioInvitations.accept(g.current_user, portfolio_token)
|
||||
|
||||
for task_order in invite.portfolio.task_orders:
|
||||
if g.current_user in task_order.officers:
|
||||
return redirect(
|
||||
url_for("task_orders.view_task_order", task_order_id=task_order.id)
|
||||
)
|
||||
|
||||
return redirect(
|
||||
url_for("applications.portfolio_applications", portfolio_id=invite.portfolio.id)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user