Fix missing organisation services from user search

The list of services this page was looking at only included those not
belonging to an organisation.

On production this excludes services we’ve added to organisations to
make the management of those services easier (eg ‘GDS’ and ‘DVLA’).
This commit is contained in:
Chris Hill-Scott
2018-07-19 15:08:02 +01:00
parent 19632ea4ab
commit 2070314cb1
2 changed files with 3 additions and 3 deletions

View File

@@ -30,9 +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)
services = user_api_client.get_services_for_user(user)
return render_template(
'views/find-users/user-information.html',
user=user,
services=services['services_without_organisations'],
services=services,
)

View File

@@ -109,7 +109,7 @@
{% block footer_support_links %}
<nav class="footer-nav">
Built by the <a href="https://www.gov.uk/government/organisations/government-digital-service">Government Digital Service</a>
<a href="{{ url_for("main.privacy") }}">Privacy</a>
<a href="{{ url_for("main.privacy") }}">Privacy</a>
<a href="{{ url_for("main.cookies") }}">Cookies</a>
{% if current_service.research_mode %}
<span id="research-mode" class="research-mode">research mode</span>