Skip to content

Commit

Permalink
Merge pull request #18 from mprasil/share_ownership
Browse files Browse the repository at this point in the history
Remove user_uuid when sharing to organization
  • Loading branch information
dani-garcia authored May 15, 2018
2 parents ac4a40b + 180a020 commit 1e812c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/core/ciphers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 1e812c0

Please sign in to comment.