mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 01:22:50 -05:00
group access all and readonly schema changes
This commit is contained in:
@ -11,6 +11,8 @@ namespace Bit.Core.Models.Api
|
||||
[Required]
|
||||
[StringLength(300)]
|
||||
public string Name { get; set; }
|
||||
[Required]
|
||||
public bool? AccessAll { get; set; }
|
||||
public IEnumerable<string> CollectionIds { get; set; }
|
||||
|
||||
public Group ToGroup(Guid orgId)
|
||||
@ -24,6 +26,7 @@ namespace Bit.Core.Models.Api
|
||||
public Group ToGroup(Group existingGroup)
|
||||
{
|
||||
existingGroup.Name = Name;
|
||||
existingGroup.AccessAll = AccessAll.Value;
|
||||
return existingGroup;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user