mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 10:08:25 -04:00
Put organisations on the user model
As in other places, putting a model layer between the view and the API client makes the code cleaner and clearer.
This commit is contained in:
@@ -31,12 +31,9 @@ def find_users_by_email():
|
||||
@login_required
|
||||
@user_is_platform_admin
|
||||
def user_information(user_id):
|
||||
user = User.from_id(user_id)
|
||||
services = user_api_client.get_services_for_user(user)
|
||||
return render_template(
|
||||
'views/find-users/user-information.html',
|
||||
user=user,
|
||||
services=services,
|
||||
user=User.from_id(user_id),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user