mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -05:00
nhs_central is crown org and also we do not update org type while
updating service anymore.
This commit is contained in:
@@ -38,6 +38,7 @@ from app.models import (
|
||||
TemplateRedacted,
|
||||
User,
|
||||
VerifyCode,
|
||||
CROWN_ORGANISATION_TYPES,
|
||||
EMAIL_TYPE,
|
||||
INTERNATIONAL_SMS_TYPE,
|
||||
KEY_TYPE_TEST,
|
||||
@@ -285,6 +286,8 @@ def dao_create_service(
|
||||
service.research_mode = False
|
||||
if organisation:
|
||||
service.crown = organisation.crown
|
||||
elif service.organisation_type in CROWN_ORGANISATION_TYPES:
|
||||
service.crown = True
|
||||
elif service.organisation_type in (NON_CROWN_ORGANISATION_TYPES + ['nhs']):
|
||||
service.crown = False
|
||||
service.count_as_live = not user.platform_admin
|
||||
|
||||
Reference in New Issue
Block a user