From b3d99507bde27b093adc6963ea9a49a332fd61c8 Mon Sep 17 00:00:00 2001 From: Pea Tyczynska Date: Mon, 16 Jul 2018 16:34:10 +0100 Subject: [PATCH] Fix displaying of services on User Information page --- app/main/views/find_users.py | 4 +++- .../views/find-users/user-information.html | 4 ++-- tests/app/main/views/test_find_users.py | 21 ++++++++++++++++--- 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/app/main/views/find_users.py b/app/main/views/find_users.py index 23a961afe..eff9830f5 100644 --- a/app/main/views/find_users.py +++ b/app/main/views/find_users.py @@ -30,7 +30,9 @@ def find_users_by_email(): @user_is_platform_admin def user_information(user_id): user = user_api_client.get_user(user_id) + services = user_api_client.get_organisations_and_services_for_user(user) return render_template( 'views/find-users/user-information.html', - user=user + user=user, + services=services['services_without_organisations'], ) diff --git a/app/templates/views/find-users/user-information.html b/app/templates/views/find-users/user-information.html index 5c9281615..95be9726c 100644 --- a/app/templates/views/find-users/user-information.html +++ b/app/templates/views/find-users/user-information.html @@ -16,9 +16,9 @@

Services