mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
make sure flags are excluded from active penalties on player profile
modify how flags "expire"
This commit is contained in:
@ -175,11 +175,11 @@ namespace SharedLibraryCore.Services
|
||||
Expression<Func<EFPenalty, bool>> filter = (p) => (new EFPenalty.PenaltyType[]
|
||||
{
|
||||
EFPenalty.PenaltyType.TempBan,
|
||||
EFPenalty.PenaltyType.Ban
|
||||
EFPenalty.PenaltyType.Ban,
|
||||
EFPenalty.PenaltyType.Flag
|
||||
}.Contains(p.Type) &&
|
||||
p.Active &&
|
||||
(p.Expires == null || p.Expires > now)) ||
|
||||
(p.Type ==EFPenalty.PenaltyType.Flag && p.Active);
|
||||
(p.Expires == null || p.Expires > now));
|
||||
|
||||
using (var context = new DatabaseContext(true))
|
||||
{
|
||||
|
Reference in New Issue
Block a user