This commit is contained in:
aprilthepink 2024-04-10 00:38:45 +02:00
parent 522ecabd07
commit 0060d8baa8

View file

@ -48,13 +48,13 @@ pub async fn http_get_user(
user_name: web::Path<String>, user_name: web::Path<String>,
data: Data<DatabaseHandle>, data: Data<DatabaseHandle>,
) -> Result<HttpResponse, Error> { ) -> Result<HttpResponse, Error> {
let signed_by = signing_actor::<DbUser>(&request, None, &data).await?; //let signed_by = signing_actor::<DbUser>(&request, None, &data).await?;
// here, checks can be made on the actor or the domain to which // here, checks can be made on the actor or the domain to which
// it belongs, to verify whether it is allowed to access this resource // it belongs, to verify whether it is allowed to access this resource
info!( //info!(
"Fetch user request is signed by system account {}", // "Fetch user request is signed by system account {}",
signed_by.id() // signed_by.id()
); //);
let db_user = data.local_user(); let db_user = data.local_user();
if user_name.into_inner() == db_user.name { if user_name.into_inner() == db_user.name {