1
0
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:
Matt Gibson
2021-06-21 19:27:11 -04:00
committed by GitHub
parent 59268790c9
commit b1d1607f50
3 changed files with 5 additions and 5 deletions

View File

@ -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));