Add an accommodations reservations module #188
@ -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