1
0
mirror of https://github.com/bitwarden/server synced 2026-01-04 17:43:53 +00:00

[AC-2447] Update PutCollection to return Unavailable cipher when last Can Manage Access is Removed (#4074)

* update CiphersController to return a unavailable value to the client so it can determine if the user removed the final Can Manage access of an item
This commit is contained in:
Jason Ng
2024-05-21 11:31:22 -04:00
committed by GitHub
parent f2242186d0
commit 87865e8f5c
3 changed files with 133 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
using Bit.Api.Vault.Models.Response;
using Bit.Core.Models.Api;
public class OptionalCipherDetailsResponseModel : ResponseModel
{
public bool Unavailable { get; set; }
public CipherDetailsResponseModel? Cipher { get; set; }
public OptionalCipherDetailsResponseModel()
: base("optionalCipherDetails")
{ }
}