mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-09-10 18:55:57 +03:00
Finished work on ciphers (import, update, and the missing types)
This commit is contained in:
@@ -94,6 +94,10 @@ fn delete_folder(uuid: String, headers: Headers, conn: DbConn) -> Result<(), Bad
|
||||
err!("Folder belongs to another user")
|
||||
}
|
||||
|
||||
if !Cipher::find_by_folder(&folder.uuid, &conn).is_empty() {
|
||||
err!("Folder is not empty")
|
||||
}
|
||||
|
||||
folder.delete(&conn);
|
||||
|
||||
Ok(())
|
||||
|
Reference in New Issue
Block a user