1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

fix: remove required annotation for AccessAll, refs PM-8792 (#4191)

This commit is contained in:
Vincent Salucci 2024-06-16 17:08:12 -05:00 committed by GitHub
parent b5241f1a97
commit 2841c1aba0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}
}