Browse Source
Merge pull request #18 from mprasil/share_ownership
Remove user_uuid when sharing to organization
pull/19/head
Daniel García
7 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
0 deletions
-
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") |
|
|
|
} |
|
|
|