From 2841c1aba03ff18f7b857cfe4f1ce066553f6392 Mon Sep 17 00:00:00 2001 From: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com> Date: Sun, 16 Jun 2024 17:08:12 -0500 Subject: [PATCH] fix: remove required annotation for AccessAll, refs PM-8792 (#4191) --- src/Api/AdminConsole/Models/Request/GroupRequestModel.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Api/AdminConsole/Models/Request/GroupRequestModel.cs b/src/Api/AdminConsole/Models/Request/GroupRequestModel.cs index 97c344f95..d4043d7ea 100644 --- a/src/Api/AdminConsole/Models/Request/GroupRequestModel.cs +++ b/src/Api/AdminConsole/Models/Request/GroupRequestModel.cs @@ -9,7 +9,6 @@ public class GroupRequestModel [Required] [StringLength(100)] public string Name { get; set; } - [Required] public bool? AccessAll { get; set; } public IEnumerable Collections { get; set; } public IEnumerable 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; } }