geforkt von mirrored/vaultwarden
Fix cloning issues
Dieser Commit ist enthalten in:
Ursprung
3fa78e7bb1
Commit
a30d5f4cf9
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
|
@ -604,7 +604,9 @@ fn share_cipher_by_uuid(
|
||||||
};
|
};
|
||||||
|
|
||||||
match data.Cipher.OrganizationId.clone() {
|
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) => {
|
Some(organization_uuid) => {
|
||||||
let mut shared_to_collection = false;
|
let mut shared_to_collection = false;
|
||||||
for uuid in &data.CollectionIds {
|
for uuid in &data.CollectionIds {
|
||||||
|
|
Laden …
In neuem Issue referenzieren