|
|
@ -7,9 +7,8 @@ public record GetUserResponse |
|
|
|
public required HashSet<LykosRole> UserRoles { get; init; } |
|
|
|
public required HashSet<LykosRole> UserRoles { get; init; } |
|
|
|
public string? PatreonId { get; init; } |
|
|
|
public string? PatreonId { get; init; } |
|
|
|
public bool IsEmailVerified { get; init; } |
|
|
|
public bool IsEmailVerified { get; init; } |
|
|
|
|
|
|
|
public bool CanHasDevBuild { get; init; } |
|
|
|
|
|
|
|
public bool CanHasPreviewBuild { get; init; } |
|
|
|
|
|
|
|
|
|
|
|
public bool IsActiveSupporter => |
|
|
|
public bool IsActiveSupporter => CanHasDevBuild || CanHasPreviewBuild; |
|
|
|
UserRoles.Contains(LykosRole.PatreonSupporter) |
|
|
|
|
|
|
|
|| UserRoles.Contains(LykosRole.Insider) |
|
|
|
|
|
|
|
|| (UserRoles.Contains(LykosRole.Developer) && PatreonId is not null); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|