mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user