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:
parent
b5241f1a97
commit
2841c1aba0
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user