Nullify PermissionSet

This commit is contained in:
Jordan Dominion
2023-12-18 23:19:49 -05:00
parent d7b2d27934
commit 5ef00c3988
@@ -1,7 +1,5 @@
using System.Collections.Generic;
#nullable disable
namespace Tgstation.Server.Host.Models
{
/// <inheritdoc />
@@ -20,17 +18,17 @@ namespace Tgstation.Server.Host.Models
/// <summary>
/// The <see cref="Models.User"/> the <see cref="PermissionSet"/> belongs to, if it is for a <see cref="Models.User"/>.
/// </summary>
public User User { get; set; }
public User? User { get; set; }
/// <summary>
/// The <see cref="UserGroup"/> the <see cref="PermissionSet"/> belongs to, if it is for a <see cref="UserGroup"/>.
/// </summary>
public UserGroup Group { get; set; }
public UserGroup? Group { get; set; }
/// <summary>
/// The <see cref="InstancePermissionSet"/>s associated with the <see cref="PermissionSet"/>.
/// </summary>
public ICollection<InstancePermissionSet> InstancePermissionSets { get; set; }
public ICollection<InstancePermissionSet>? InstancePermissionSets { get; set; }
/// <summary>
/// Convert the <see cref="PermissionSet"/> to it's API form.