mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
fix: remove required annotation for AccessAll, refs PM-8792 (#4191)
This commit is contained in:
@ -9,7 +9,6 @@ public class GroupRequestModel
|
||||
[Required]
|
||||
[StringLength(100)]
|
||||
public string Name { get; set; }
|
||||
[Required]
|
||||
public bool? AccessAll { get; set; }
|
||||
public IEnumerable<SelectionReadOnlyRequestModel> Collections { get; set; }
|
||||
public IEnumerable<Guid> Users { get; set; }
|
||||
@ -25,7 +24,7 @@ public class GroupRequestModel
|
||||
public Group ToGroup(Group existingGroup)
|
||||
{
|
||||
existingGroup.Name = Name;
|
||||
existingGroup.AccessAll = AccessAll.Value;
|
||||
existingGroup.AccessAll = AccessAll ?? false;
|
||||
return existingGroup;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user