notify-admin-211 remove nhs-specific code

This commit is contained in:
Kenneth Kehl
2023-08-24 07:49:42 -07:00
parent f47deb1f99
commit 476644369d
6 changed files with 0 additions and 70 deletions

View File

@@ -347,8 +347,6 @@ class User(JSONModel, UserMixin):
def default_organization_type(self):
if self.default_organization:
return self.default_organization.organization_type
if self.has_nhs_email_address:
return 'nhs'
return None
@property
@@ -359,12 +357,6 @@ class User(JSONModel, UserMixin):
self.trial_mode_services
)
@property
def has_nhs_email_address(self):
return self.email_address.lower().endswith((
'@nhs.uk', '.nhs.uk', '@nhs.net', '.nhs.net',
))
def serialize(self):
dct = {
"id": self.id,