mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-09-10 10:45:57 +03:00
Fix limitation on sharing ciphers with attachments
This check is several years old, so maybe there was a valid reason for having it before, but it's not correct anymore.
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user