mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04: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)
|
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
|
@property
|
||||||
def service_ids(self):
|
def service_ids(self):
|
||||||
return self._dict['services']
|
return self._dict['services']
|
||||||
@@ -312,12 +305,6 @@ class User(JSONModel, UserMixin):
|
|||||||
service for service in self.services if service.live
|
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
|
@property
|
||||||
def organisations(self):
|
def organisations(self):
|
||||||
return [
|
return [
|
||||||
|
|||||||
Reference in New Issue
Block a user