mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-03-01 14:51:04 -05:00
Delete User properties which are now no longer used
This commit is contained in:
@@ -289,13 +289,6 @@ class User(JSONModel, UserMixin):
|
||||
if self.belongs_to_organisation(service.organisation_id)
|
||||
]
|
||||
|
||||
@property
|
||||
def services_without_organisations(self):
|
||||
return [
|
||||
service for service in self.services
|
||||
if not self.belongs_to_organisation(service.organisation_id)
|
||||
]
|
||||
|
||||
@property
|
||||
def service_ids(self):
|
||||
return self._dict['services']
|
||||
@@ -312,12 +305,6 @@ class User(JSONModel, UserMixin):
|
||||
service for service in self.services if service.live
|
||||
]
|
||||
|
||||
@property
|
||||
def live_services_not_belonging_to_users_organisations(self):
|
||||
return self.sort_services(
|
||||
set(self.live_services).union(self.services_without_organisations)
|
||||
)
|
||||
|
||||
@property
|
||||
def organisations(self):
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user