Profile update tests

This commit is contained in:
Alphonse Paix
2025-10-07 23:07:16 +02:00
parent 0b402c6259
commit 3bfac6d012
4 changed files with 242 additions and 5 deletions

View File

@@ -158,7 +158,10 @@ pub async fn update_post(
))
.into_response())
}
_ => Ok(HtmlTemplate(ErrorTemplate::Forbidden).into_response()),
_ => Ok(HtmlTemplate(MessageTemplate::error(
"You are not authorized. Only the author can edit his post.".into(),
))
.into_response()),
}
}