mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-22 16:14:20 -05:00
[PR #14] [MERGED] Also list shared ciphers in find_by_user #22102
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/14
Author: @mprasil
Created: 5/11/2018
Status: ✅ Merged
Merged: 5/13/2018
Merged by: @dani-garcia
Base:
master← Head:shared_cipher📝 Commits (3)
8bed867Also list shared ciphers in find_by_user89e5440Fix duplicate ciphers returned from find_by_userb0472d7Delete owned ciphers on account deletion📊 Changes
3 files changed (+29 additions, -4 deletions)
View changed files
📝
src/api/core/accounts.rs(+1 -1)📝
src/api/core/ciphers.rs(+1 -1)📝
src/db/models/cipher.rs(+27 -2)📄 Description
This splits the
find_by_userinto two separate functions:find_owned_by_userwhich retains previous functionality and lists only ciphers directly owned by user andfind_by_userwhich now also lists all ciphers shared with user.As a result shared ciphers are now visible in user's vault.
There's also small change in the
/api/ciphers/purgehandler to use thefind_owned_by_userinstead to only purge user's content and not the shared stuff.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.