mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-06-12 13:50:07 +00:00
parent
7d116773f9
commit
4c42a7e64c
1 changed files with 2 additions and 2 deletions
|
@ -776,7 +776,7 @@ async fn post_bulk_collections(
|
|||
|
||||
for cipher in &data.cipher_ids {
|
||||
let Some(cipher) = Cipher::find_by_uuid(cipher, &mut conn).await else {
|
||||
err!(format!("Cipher '{}' doesn't exist", cipher))
|
||||
err!("Cipher doesn't exist")
|
||||
};
|
||||
|
||||
if !cipher.is_write_accessible_to_user(&headers.user.uuid, &mut conn).await {
|
||||
|
@ -785,7 +785,7 @@ async fn post_bulk_collections(
|
|||
|
||||
for collection in &data.collection_ids {
|
||||
match Collection::find_by_uuid_and_org(collection, &data.organization_id, &mut conn).await {
|
||||
None => err!(format!("Invalid collection ID provided: {}", collection)),
|
||||
None => err!("Invalid collection ID provided"),
|
||||
Some(collection) => {
|
||||
if collection.is_writable_by_user(&headers.user.uuid, &mut conn).await {
|
||||
if data.remove_collections {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue