mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 18:22:37 -04:00
We get people signing up for Notify who work for the NHS, but whose organisation we don’t know about. For example `name@gloshospitals.nhs.uk` will be someone working for Gloucestershire Hospitals NHS Foundation Trust, which is not an organisation we have in the database. Currently we rely on knowing the specific organisation (NHS as a whole isn’t an organisation) in order to set the organisation type for any services they create. This commit adds a special case for anyone with an NHS email address to set the organisation type to be NHS, even when we don’t know which specific part of the NHS they work for. This is the same thing we do on the API side for NHS email and letter branding: https://github.com/alphagov/notifications-api/blob/a4ae5a0a90494ab338561010ed279bf198b15a72/app/dao/services_dao.py#L310-L313
2.8 KiB
2.8 KiB