From 180a02030c309933e2605c8b2a52266283c95af8 Mon Sep 17 00:00:00 2001 From: Miroslav Prasil Date: Tue, 15 May 2018 16:08:19 +0100 Subject: [PATCH] Remove user_uuid when sharing to organization --- src/api/core/ciphers.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs index d5309c4f..32915a55 100644 --- a/src/api/core/ciphers.rs +++ b/src/api/core/ciphers.rs @@ -128,6 +128,7 @@ fn update_cipher_from_data(cipher: &mut Cipher, data: CipherData, headers: &Head None => err!("You don't have permission to add item to organization"), Some(org_user) => if org_user.has_full_access() { cipher.organization_uuid = Some(org_id); + cipher.user_uuid = None; } else { err!("You don't have permission to add cipher directly to organization") }