Fix a bug with inviting existing users to an organisation.

The method to add the user to the organisation was missing the user id. This PR fixes that.
This commit is contained in:
Rebecca Law
2019-06-27 15:34:23 +01:00
parent 149003c52c
commit d344bc7006
3 changed files with 6 additions and 6 deletions

View File

@@ -584,8 +584,8 @@ class InvitedOrgUser(JSONModel):
def accept_invite(self):
org_invite_api_client.accept_invite(self.organisation, self.id)
def add_to_organisation(self):
user_api_client.add_user_to_organisation(self.organisation, self.id)
def add_to_organisation(self, user_id):
user_api_client.add_user_to_organisation(self.organisation, user_id)
class AnonymousUser(AnonymousUserMixin):