mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 17:28:24 -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:
@@ -105,7 +105,7 @@ def accept_org_invite(token):
|
||||
if existing_user:
|
||||
invited_org_user.accept_invite()
|
||||
if existing_user not in organisation_users:
|
||||
invited_org_user.add_to_organisation()
|
||||
invited_org_user.add_to_organisation(existing_user.id)
|
||||
return redirect(url_for('main.organisation_dashboard', org_id=invited_org_user.organisation))
|
||||
else:
|
||||
return redirect(url_for('main.register_from_org_invite'))
|
||||
|
||||
Reference in New Issue
Block a user