commit 180a02030c309933e2605c8b2a52266283c95af8
parent ac4a40be04d696faf8b4d02ec3a8180a273f9623
Author: Miroslav Prasil <miroslav@prasil.info>
Date: Tue, 15 May 2018 16:08:19 +0100
Remove user_uuid when sharing to organization
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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")
}