commit 71a10e03783814785516e886620e5a7ee1bc921a parent 9bf13b78723a4177281fd8a114856d6d680aff1b Author: Miroslav Prasil <miroslav@prasil.info> Date: Wed, 16 Jan 2019 11:33:43 +0000 Fix sharing the item to organization. Diffstat:
M | 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 @@ -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") }