Merge pull request #2740 from alphagov/invited-by-notify

Let the Notify team invite people to an organisation
This commit is contained in:
Chris Hill-Scott
2020-03-11 14:52:05 +00:00
committed by GitHub
2 changed files with 13 additions and 2 deletions

View File

@@ -48,7 +48,11 @@ def invite_user_to_org(organisation_id):
recipient=invited_org_user.email_address,
service=template.service,
personalisation={
'user_name': invited_org_user.invited_by.name,
'user_name': (
'The GOV.UK Notify team'
if invited_org_user.invited_by.platform_admin
else invited_org_user.invited_by.name
),
'organisation_name': invited_org_user.organisation.name,
'url': invited_org_user_url(
invited_org_user.id,