diff --git a/app/organization/invite_rest.py b/app/organization/invite_rest.py index 18874e9a2..254de322c 100644 --- a/app/organization/invite_rest.py +++ b/app/organization/invite_rest.py @@ -55,7 +55,7 @@ def invite_user_to_org(organization_id): service=template.service, personalisation={ "user_name": ( - "The GOV.UK Notify team" + "The Notify.gov team" if invited_org_user.invited_by.platform_admin else invited_org_user.invited_by.name ), diff --git a/tests/app/organization/test_invite_rest.py b/tests/app/organization/test_invite_rest.py index c57fa8dd0..a68ec409f 100644 --- a/tests/app/organization/test_invite_rest.py +++ b/tests/app/organization/test_invite_rest.py @@ -13,7 +13,7 @@ from tests.app.db import create_invited_org_user @pytest.mark.parametrize( "platform_admin, expected_invited_by", - ((True, "The GOV.UK Notify team"), (False, "Test User")), + ((True, "The Notify.gov team"), (False, "Test User")), ) @pytest.mark.parametrize( "extra_args, expected_start_of_invite_url",