From 71a10e03783814785516e886620e5a7ee1bc921a Mon Sep 17 00:00:00 2001 From: Miroslav Prasil Date: Wed, 16 Jan 2019 11:33:43 +0000 Subject: [PATCH] Fix sharing the item to organization. --- src/api/core/ciphers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs index 1168a0f..d90e1a2 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") }