prevent flagging banned players

This commit is contained in:
RaidMax 2019-08-12 20:00:40 -05:00
parent 5fef69d697
commit 001ecc5961

View File

@ -250,7 +250,7 @@ namespace SharedLibraryCore.Database.Models
e.FailReason = GameEvent.EventFailReason.Permission;
}
else if (Level == Permission.Flagged)
else if (Level == Permission.Flagged || Level == Permission.Banned)
{
e.FailReason = GameEvent.EventFailReason.Invalid;
}
@ -282,7 +282,7 @@ namespace SharedLibraryCore.Database.Models
e.FailReason = GameEvent.EventFailReason.Permission;
}
else if (Level != Permission.Flagged)
else if (Level != Permission.Flagged || Level == Permission.Banned)
{
e.FailReason = GameEvent.EventFailReason.Invalid;
}