From e19283a677d7c071b30def03cc79e4fae69769b7 Mon Sep 17 00:00:00 2001 From: Stefan Melmuk Date: Wed, 21 Aug 2024 21:46:10 +0200 Subject: [PATCH] remove overzealous sanity check when cloning an item from an organization to the personal vault the client sends the collection id of the cloned item --- src/api/core/ciphers.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs index 7907cd7672..6fcde07c31 100644 --- a/src/api/core/ciphers.rs +++ b/src/api/core/ciphers.rs @@ -287,10 +287,6 @@ async fn post_ciphers_create( if data.cipher.organization_id.is_some() && data.collection_ids.is_empty() { err!("You must select at least one collection."); } - // reverse sanity check to prevent corruptions - if !data.collection_ids.is_empty() && data.cipher.organization_id.is_none() { - err!("The client has not provided an organization id!"); - } // This check is usually only needed in update_cipher_from_data(), but we // need it here as well to avoid creating an empty cipher in the call to