Fix bad assumption
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Pierre HUBERT 2024-05-30 21:46:55 +02:00
parent 5075e8843b
commit 9f72cd9b9c

View File

@ -158,7 +158,7 @@ pub async fn validate_or_reject(
q: web::Json<ValidateQuery>,
) -> HttpResult {
if !m.membership().is_admin {
return Ok(HttpResponse::BadRequest().json("Only an admin can validate a reservation!"));
return Ok(HttpResponse::BadRequest().json("Only a family admin can validate a reservation!"));
}
if m.validated == Some(q.validate) {