diff options
author | Miroslav Prasil <[email protected]> | 2019-01-16 11:33:43 +0000 |
---|---|---|
committer | Miroslav Prasil <[email protected]> | 2019-01-16 11:33:43 +0000 |
commit | 71a10e03783814785516e886620e5a7ee1bc921a (patch) | |
tree | 2e70e3f90798f84a80c58289c6410730de0c7408 | |
parent | 9bf13b78723a4177281fd8a114856d6d680aff1b (diff) | |
download | vaultwarden-71a10e03783814785516e886620e5a7ee1bc921a.tar.gz vaultwarden-71a10e03783814785516e886620e5a7ee1bc921a.zip |
Fix sharing the item to organization.
-rw-r--r-- | src/api/core/ciphers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs index 1168a0f7..d90e1a25 100644 --- a/src/api/core/ciphers.rs +++ b/src/api/core/ciphers.rs @@ -221,7 +221,7 @@ pub fn update_cipher_from_data( nt: &Notify, ut: UpdateType, ) -> EmptyResult { - if cipher.organization_uuid != data.OrganizationId { + if cipher.organization_uuid.is_some() && cipher.organization_uuid != data.OrganizationId { err!("Organization mismatch. Please resync the client before updating the cipher") } |