mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
Redefine cipher "share" to "move to organization" (#1401)
Do not imply users can share with organizations. Organizations share with users. Users share _using_ organizations
This commit is contained in:
@ -175,7 +175,7 @@ namespace Bit.Api.Controllers
|
||||
(Guid?)null : new Guid(model.OrganizationId);
|
||||
if (cipher.OrganizationId != modelOrgId)
|
||||
{
|
||||
throw new BadRequestException("Organization mismatch. Re-sync if you recently shared this item, " +
|
||||
throw new BadRequestException("Organization mismatch. Re-sync if you recently moved this item, " +
|
||||
"then try again.");
|
||||
}
|
||||
|
||||
@ -528,7 +528,7 @@ namespace Bit.Api.Controllers
|
||||
{
|
||||
if (!ciphersDict.ContainsKey(cipher.Id.Value))
|
||||
{
|
||||
throw new BadRequestException("Trying to share ciphers that you do not own.");
|
||||
throw new BadRequestException("Trying to move ciphers that you do not own.");
|
||||
}
|
||||
|
||||
shareCiphers.Add((cipher.ToCipher(ciphersDict[cipher.Id.Value]), cipher.LastKnownRevisionDate));
|
||||
|
Reference in New Issue
Block a user