All conditions are met by this point; no branch really exists
This commit is contained in:
parent
2e2eff2e8e
commit
4d834e65c7
@ -84,7 +84,7 @@ class Invitations(object):
|
||||
elif invite.is_accepted or invite.is_revoked or invite.is_rejected:
|
||||
raise InvitationError(invite)
|
||||
|
||||
elif invite.is_pending:
|
||||
elif invite.is_pending: # pragma: no branch
|
||||
Invitations._update_status(invite, InvitationStatus.ACCEPTED)
|
||||
WorkspaceRoles.enable(invite.workspace_role)
|
||||
return invite
|
||||
|
Loading…
x
Reference in New Issue
Block a user