From 5c77431c2d639924fe1c492311d14e2abf432bfd Mon Sep 17 00:00:00 2001 From: Mathijs van Veluw Date: Thu, 25 Jan 2024 21:57:35 +0100 Subject: [PATCH] Fix bulk collection deletion (#4257) The bulk collection delete seems to have removed the extra org_id in the posted data. Now we only use the org_id from the path. Fixes #4253 --- src/api/core/organizations.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs index f57d8506..25cd5355 100644 --- a/src/api/core/organizations.rs +++ b/src/api/core/organizations.rs @@ -611,7 +611,6 @@ async fn post_organization_collection_delete( #[allow(non_snake_case)] struct BulkCollectionIds { Ids: Vec, - OrganizationId: String, } #[delete("/organizations//collections", data = "")] @@ -622,9 +621,6 @@ async fn bulk_delete_organization_collections( mut conn: DbConn, ) -> EmptyResult { let data: BulkCollectionIds = data.into_inner().data; - if org_id != data.OrganizationId { - err!("OrganizationId mismatch"); - } let collections = data.Ids;