mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
Merge pull request #2740 from alphagov/invited-by-notify
Let the Notify team invite people to an organisation
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user