diff --git a/geneit_backend/src/controllers/accommodations_list_controller.rs b/geneit_backend/src/controllers/accommodations_list_controller.rs index 44ffe8b..d38ec79 100644 --- a/geneit_backend/src/controllers/accommodations_list_controller.rs +++ b/geneit_backend/src/controllers/accommodations_list_controller.rs @@ -67,7 +67,10 @@ pub async fn create( } /// Delete an accommodation -pub async fn delete(m: FamilyAndAccommodationInPath) -> HttpResult { +pub async fn delete( + m: FamilyAndAccommodationInPath, + _admin: FamilyInPathWithAdminMembership, +) -> HttpResult { accommodations_list_service::delete(&mut m.to_accommodation()).await?; Ok(HttpResponse::Ok().finish()) }