1
0
Fork 0

Fix cloning issues

Dieser Commit ist enthalten in:
Daniel García 2020-03-14 14:08:57 +01:00
Ursprung 3fa78e7bb1
Commit a30d5f4cf9
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: FC8A7D14C3CD543A

Datei anzeigen

@ -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 {