mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-23 20:08:09 +03:00
Updated dependencies, removed some unnecessary clones and fixed some lints
This commit is contained in:
7 files changed
+66
-87
No files matched your search
@@ -608,7 +608,7 @@ fn share_cipher_by_uuid(
|
||||
None => err!("Invalid collection ID provided"),
|
||||
Some(collection) => {
|
||||
if collection.is_writable_by_user(&headers.user.uuid, &conn) {
|
||||
CollectionCipher::save(&cipher.uuid.clone(), &collection.uuid, &conn)?;
|
||||
CollectionCipher::save(&cipher.uuid, &collection.uuid, &conn)?;
|
||||
shared_to_collection = true;
|
||||
} else {
|
||||
err!("No rights to modify the collection")
|
||||
|
||||
Reference in new issue
Block a user