1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-21 00:45:18 +00:00

Start to return advanced user info

This commit is contained in:
2020-06-01 09:19:29 +02:00
parent 9915e9af23
commit a0f105090d
5 changed files with 51 additions and 1 deletions

View File

@ -54,5 +54,6 @@ pub fn get_advanced_info(request: &mut HttpRequestHandler) -> RequestResult {
request.forbidden("You are not allowed to see this user page!".to_string())?;
}
request.success("get user info")
let user = user_helper::find_user_by_id(user_id)?;
request.set_response(APIUserInfo::new_advanced_info(request.user_id_opt(), &user)?)
}