mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-17 18:44:11 -05:00
get orgs and services from user
this endpoint should probably only be used for the choose-service page also create an OrganisationBrowsableItem to aid rendering of them in the front-end.
This commit is contained in:
@@ -185,3 +185,7 @@ class UserApiClient(NotifyAdminAPIClient):
|
||||
endpoint = '/user/{}/change-email-verification'.format(user_id)
|
||||
data = {'email': new_email}
|
||||
self.post(endpoint, data)
|
||||
|
||||
def get_organisations_and_services_for_user(self, user):
|
||||
endpoint = '/user/{}/organisations-and-services'.format(user.id)
|
||||
return self.get(endpoint)
|
||||
|
||||
Reference in New Issue
Block a user