mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[PR #14] [MERGED] Also list shared ciphers in find_by_user #2571
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#2571
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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.