1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

fix issue with not loading last connection for admins

continue work on fixing profile
This commit is contained in:
RaidMax
2019-03-25 21:12:16 -05:00
parent fea974ee0f
commit c496e536bb
7 changed files with 92 additions and 70 deletions

View File

@ -566,7 +566,9 @@ namespace SharedLibraryCore.Database.Models
#region CLIENT_GUID_TEMPBAN
else
{
var profileTempBan = ReceivedPenalties.FirstOrDefault(_penalty => _penalty.Type == Penalty.PenaltyType.TempBan && _penalty.Active);
var profileTempBan = ReceivedPenalties.FirstOrDefault(_penalty => _penalty.Type == Penalty.PenaltyType.TempBan &&
_penalty.Active &&
_penalty.Expires > DateTime.UtcNow);
// they have an active tempban tied to their GUID
if (profileTempBan != null)

View File

@ -384,7 +384,8 @@ namespace SharedLibraryCore.Services
Level = client.Level,
Password = client.Password,
PasswordSalt = client.PasswordSalt,
NetworkId = client.NetworkId
NetworkId = client.NetworkId,
LastConnection = client.LastConnection
};
#if DEBUG == true