mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-03 07:31:28 -04:00
Fix inviting existing users
The API needs the id of the user, not the id of the invite. The problem with the tests is that the update mock returned a different user ID than the user it was being passed. So the tests didn’t catch this.
This commit is contained in:
@@ -348,10 +348,10 @@ class InvitedUser(JSONModel):
|
||||
def accept_invite(self):
|
||||
invite_api_client.accept_invite(self.service, self.id)
|
||||
|
||||
def add_to_service(self):
|
||||
def add_to_service(self, existing_user_id):
|
||||
user_api_client.add_user_to_service(
|
||||
self.service,
|
||||
self.id,
|
||||
existing_user_id,
|
||||
self.permissions,
|
||||
self.folder_permissions,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user