mirror of
https://github.com/bitwarden/server
synced 2025-12-20 02:03:46 +00:00
rename AccessAllCollections => AccessAll
This commit is contained in:
@@ -12,7 +12,7 @@ namespace Bit.Core.Models.Api
|
||||
public string Email { get; set; }
|
||||
[Required]
|
||||
public Enums.OrganizationUserType? Type { get; set; }
|
||||
public bool AccessAllCollections { get; set; }
|
||||
public bool AccessAll { get; set; }
|
||||
public IEnumerable<OrganizationUserCollectionRequestModel> Collections { get; set; }
|
||||
}
|
||||
|
||||
@@ -32,13 +32,13 @@ namespace Bit.Core.Models.Api
|
||||
{
|
||||
[Required]
|
||||
public Enums.OrganizationUserType? Type { get; set; }
|
||||
public bool AccessAllCollections { get; set; }
|
||||
public bool AccessAll { get; set; }
|
||||
public IEnumerable<OrganizationUserCollectionRequestModel> Collections { get; set; }
|
||||
|
||||
public OrganizationUser ToOrganizationUser(OrganizationUser existingUser)
|
||||
{
|
||||
existingUser.Type = Type.Value;
|
||||
existingUser.AccessAllCollections = AccessAllCollections;
|
||||
existingUser.AccessAll = AccessAll;
|
||||
return existingUser;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user