Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-22 05:10:29 +01:00
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
Dieser Commit ist enthalten in:
Ursprung
2775c6ce8a
Commit
5c77431c2d
1 geänderte Dateien mit 0 neuen und 4 gelöschten Zeilen
|
@ -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;
|
||||
|
||||
|
|
Laden …
In neuem Issue referenzieren