mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
Only show live services without an organisation
In reality we shouldn’t have any live services that don’t have an organisation. But we probably do locally, in preview, etc., and we shouldn’t lose a way of accessing them.
This commit is contained in:
@@ -268,6 +268,13 @@ class User(JSONModel, UserMixin):
|
||||
if not service['restricted']
|
||||
]
|
||||
|
||||
@property
|
||||
def live_services_not_belonging_to_users_organisations(self):
|
||||
return [
|
||||
service for service in self.orgs_and_services['services_without_organisations']
|
||||
if not service['restricted']
|
||||
]
|
||||
|
||||
@property
|
||||
def organisations(self):
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user