mirror of
https://github.com/bitwarden/server.git
synced 2024-11-28 13:15:12 +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]
|
[Required]
|
||||||
[StringLength(100)]
|
[StringLength(100)]
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
[Required]
|
|
||||||
public bool? AccessAll { get; set; }
|
public bool? AccessAll { get; set; }
|
||||||
public IEnumerable<SelectionReadOnlyRequestModel> Collections { get; set; }
|
public IEnumerable<SelectionReadOnlyRequestModel> Collections { get; set; }
|
||||||
public IEnumerable<Guid> Users { get; set; }
|
public IEnumerable<Guid> Users { get; set; }
|
||||||
@ -25,7 +24,7 @@ public class GroupRequestModel
|
|||||||
public Group ToGroup(Group existingGroup)
|
public Group ToGroup(Group existingGroup)
|
||||||
{
|
{
|
||||||
existingGroup.Name = Name;
|
existingGroup.Name = Name;
|
||||||
existingGroup.AccessAll = AccessAll.Value;
|
existingGroup.AccessAll = AccessAll ?? false;
|
||||||
return existingGroup;
|
return existingGroup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user