prevent privileged client from being flagged when reported
fix issue with enum parsing on finding client
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user