mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
Let the Notify team invite people to an organisation
We want to start granting access to the org page. But it will be a bit weird if the invites come from us personally, since the people we’re inviting don’t know us. It makes more sense, and sounds more official if the invites appear to come from the ‘GOV.UK Notify team’ instead.
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