Merge branch 'fix-attachment-sharing' of https://github.com/jjlin/vaultwarden into jjlin-fix-attachment-sharing

This commit is contained in:
Daniel García committed 2021-08-22 22:14:07 +02:00
commit 41add45e67
2 files changed
-16

No files matched your search

-6
View File
@@ -687,12 +687,6 @@ fn put_cipher_share_selected(
};
}
let attachments = Attachment::find_by_ciphers(cipher_ids, &conn);
if !attachments.is_empty() {
err!("Ciphers should not have any attachments.")
}
while let Some(cipher) = data.Ciphers.pop() {
let mut shared_cipher_data = ShareCipherData {
Cipher: cipher,