vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit a30d5f4cf9039653a55e2eb6b8b3ac98815aac33
parent 3fa78e7bb141979d6f6fdfa20aecc70493b80842
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Sat, 14 Mar 2020 14:08:57 +0100

Fix cloning issues

Diffstat:
Msrc/api/core/ciphers.rs | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs @@ -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 {