Add an accommodations reservations module #188
@ -158,7 +158,7 @@ pub async fn validate_or_reject(
|
|||||||
q: web::Json<ValidateQuery>,
|
q: web::Json<ValidateQuery>,
|
||||||
) -> HttpResult {
|
) -> HttpResult {
|
||||||
if !m.membership().is_admin {
|
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) {
|
if m.validated == Some(q.validate) {
|
||||||
|
Loading…
Reference in New Issue
Block a user