mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 17:01:35 -05:00
Make service created by platform admin non-counted
If a service has been created by someone on our team, it’s probably a test service, which shouldn’t be included in the count of live services.
This commit is contained in:
@@ -179,6 +179,7 @@ def dao_create_service(
|
||||
service.active = True
|
||||
service.research_mode = False
|
||||
service.crown = service.organisation_type == 'central'
|
||||
service.count_as_live = not user.platform_admin
|
||||
|
||||
for permission in service_permissions:
|
||||
service_permission = ServicePermission(service_id=service.id, permission=permission)
|
||||
|
||||
Reference in New Issue
Block a user