mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 19:03:30 -05:00
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:
@@ -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,
|
||||
)
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user