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

prevent privileged client from being flagged when reported

fix issue with enum parsing on finding client
This commit is contained in:
RaidMax
2019-08-30 13:31:23 -05:00
parent ec630bb991
commit 7b2ee8df8d
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ namespace WebfrontCore.Controllers
foreach(var client in clientsDto)
{
if (!Authorized && ((Permission)Enum.Parse(typeof(Permission), client.Level)).ShouldHideLevel())
if (!Authorized && ((Permission)client.LevelInt).ShouldHideLevel())
{
client.LevelInt = (int)Permission.User;
client.Level = Permission.User.ToLocalizedLevelName();