Also list shared ciphers in find_by_user

This commit is contained in:
Miroslav Prasil
2018-05-11 23:53:37 +01:00
parent fcef2fa1f1
commit 8bed867798
2 changed files with 27 additions and 3 deletions

View File

@ -503,7 +503,7 @@ fn delete_all(data: Json<PasswordData>, headers: Headers, conn: DbConn) -> Empty
}
// Delete ciphers and their attachments
for cipher in Cipher::find_by_user(&user.uuid, &conn) {
for cipher in Cipher::find_owned_by_user(&user.uuid, &conn) {
_delete_cipher(cipher, &conn);
}