From e5b64746b404a2065870e5965c9c24e2702e90db Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 12 Jul 2021 18:40:41 +0200 Subject: [PATCH] Administrators do get account image visibility --- src/api_data/admin/admin_user_info_api.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api_data/admin/admin_user_info_api.rs b/src/api_data/admin/admin_user_info_api.rs index 77a92c2..a024bfa 100644 --- a/src/api_data/admin/admin_user_info_api.rs +++ b/src/api_data/admin/admin_user_info_api.rs @@ -17,6 +17,7 @@ pub struct AdminUserInfoAPI { page_visibility: &'static str, directory: Option, account_image: String, + account_image_visibility: String, friend_list_public: bool, is_email_public: bool, personal_website: Option, @@ -32,6 +33,7 @@ impl AdminUserInfoAPI { pub fn new(user: User) -> Self { Self { account_image: user.account_image_url_for_admin(), + account_image_visibility: user.account_image_visibility.to_api(), friend_list_public: user.public_friends_list, is_email_public: user.is_email_public, personal_website: user.personal_website,