Only an admin can delete an accommodation
This commit is contained in:
		@@ -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())
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user