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:
@@ -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")
|
||||
{ }
|
||||
}
|
||||
Reference in New Issue
Block a user