mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-06 09:13:03 +03:00
[PR #17] [MERGED] Implement cipher sharing #3920
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/17
Author: @mprasil
Created: 5/14/2018
Status: ✅ Merged
Merged: 5/15/2018
Merged by: @dani-garcia
Base:
master← Head:share_cipher📝 Commits (3)
8b18c4cImplement cipher sharingf43d329Don't clone() unused value3b537f7Remove unnecessary test and rewrite match📊 Changes
3 files changed (+52 additions, -3 deletions)
View changed files
📝
src/api/core/ciphers.rs(+47 -3)📝
src/api/core/mod.rs(+1 -0)📝
src/db/models/organization.rs(+4 -0)📄 Description
This implements sharing an user-owned Cipher to Organization.
For now this only implements functionality for user that has at least
access_allrights to the organization. I think that it should be possible to share Cipher to a specific collection only if the user has write access, however this will require some update toupdate_cipher_from_data, which would probably be better handled in separate PR.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.