diff options
author | Mathijs van Veluw <[email protected]> | 2024-01-25 21:57:35 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-01-25 21:57:35 +0100 |
commit | 5c77431c2d639924fe1c492311d14e2abf432bfd (patch) | |
tree | 558fbac7e36526f216d451b2ac4716d76f309361 | |
parent | 2775c6ce8aabc3bc21249b392861fa2e1dbbd7b9 (diff) | |
download | vaultwarden-5c77431c2d639924fe1c492311d14e2abf432bfd.tar.gz vaultwarden-5c77431c2d639924fe1c492311d14e2abf432bfd.zip |
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
-rw-r--r-- | src/api/core/organizations.rs | 4 |
1 files changed, 0 insertions, 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<String>, - OrganizationId: String, } #[delete("/organizations/<org_id>/collections", data = "<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; |