Browse Source
Merge pull request #343 from mprasil/share_fix
Fix sharing the item to organization.
pull/347/head
Daniel García
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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") |
|
|
|
} |
|
|
|
|
|
|
|