commit 20964ac2d8ec27f86bfb52eee99e915cacd5c7c3
parent 9bf13b78723a4177281fd8a114856d6d680aff1b
Author: Daniel GarcĂa <dani-garcia@users.noreply.github.com>
Date: Wed, 16 Jan 2019 12:58:58 +0100
Merge pull request #343 from mprasil/share_fix
Fix sharing the item to organization.
Diffstat:
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")
}