disabled raid signup buttons are now hidden

Fixed crash caused by external users
This commit is contained in:
Sarah Faey 2022-12-11 13:16:18 +01:00
parent ba7cf120d0
commit 6d86176d0f
3 changed files with 4 additions and 5 deletions

View file

@ -394,7 +394,7 @@ namespace Lieb.Data
return false;
}
foreach (ulong userId in raid.SignUps.Where(s => s.RaidRoleId == plannedRoleId && s.SignUpType == SignUpType.SignedUp).Select(s => s.LiebUserId))
foreach (ulong userId in raid.SignUps.Where(s => s.RaidRoleId == plannedRoleId && s.SignUpType == SignUpType.SignedUp && s.LiebUserId.HasValue).Select(s => s.LiebUserId))
{
foreach (RaidSignUp signUp in raid.SignUps.Where(s => s.LiebUserId == userId && s.SignUpType == SignUpType.Flex))
{