Only allow users matching the team invite to accept, if the invite was specified for a user (rather than an email)
This commit is contained in:
parent
c5ca46a14b
commit
10faa7de84
7 changed files with 24 additions and 21 deletions
|
@ -891,7 +891,7 @@ class TestAcceptTeamMemberInvite(ApiTestCase):
|
|||
# Verify the accept now fails.
|
||||
self.putResponse(TeamMemberInvite,
|
||||
params=dict(code=invites[0].invite_token),
|
||||
expected_code=404)
|
||||
expected_code=400)
|
||||
|
||||
|
||||
|
||||
|
@ -914,7 +914,7 @@ class TestDeclineTeamMemberInvite(ApiTestCase):
|
|||
|
||||
self.deleteResponse(TeamMemberInvite,
|
||||
params=dict(code=invites[0].invite_token),
|
||||
expected_code=404)
|
||||
expected_code=400)
|
||||
|
||||
|
||||
def test_decline(self):
|
||||
|
@ -942,7 +942,7 @@ class TestDeclineTeamMemberInvite(ApiTestCase):
|
|||
# Make sure the invite was deleted.
|
||||
self.deleteResponse(TeamMemberInvite,
|
||||
params=dict(code=invites[0].invite_token),
|
||||
expected_code=404)
|
||||
expected_code=400)
|
||||
|
||||
|
||||
class TestDeleteOrganizationTeamMember(ApiTestCase):
|
||||
|
|
Reference in a new issue