mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
notify-admin-211 remove nhs-specific code
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user