mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
Include live/trial mode in list of services
We need this so we can check in the admin whether users have any live services.
This commit is contained in:
@@ -449,7 +449,8 @@ def get_orgs_and_services(user):
|
||||
'services': [
|
||||
{
|
||||
'id': service.id,
|
||||
'name': service.name
|
||||
'name': service.name,
|
||||
'restricted': service.restricted,
|
||||
}
|
||||
for service in org.services
|
||||
if service.active and service in user.services
|
||||
@@ -460,7 +461,8 @@ def get_orgs_and_services(user):
|
||||
'services_without_organisations': [
|
||||
{
|
||||
'id': service.id,
|
||||
'name': service.name
|
||||
'name': service.name,
|
||||
'restricted': service.restricted,
|
||||
} for service in user.services
|
||||
if (
|
||||
service.active and
|
||||
|
||||
Reference in New Issue
Block a user