1
0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2024-11-11 13:32:38 +01:00

Fix cloning issues

This commit is contained in:
Daniel García 2020-03-14 14:08:57 +01:00
parent 3fa78e7bb1
commit a30d5f4cf9
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A

View File

@ -604,7 +604,9 @@ fn share_cipher_by_uuid(
};
match data.Cipher.OrganizationId.clone() {
None => err!("Organization id not provided"),
// If we don't get an organization ID, we don't do anything
// No error because this is used when using the Clone functionality
None => Ok(Json(cipher.to_json(&headers.host, &headers.user.uuid, &conn))),
Some(organization_uuid) => {
let mut shared_to_collection = false;
for uuid in &data.CollectionIds {