Fix bad assumption
This commit is contained in:
parent
5075e8843b
commit
9f72cd9b9c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user