From 1484d63b9769552ec3cdf3b794869e92a03ef630 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Fri, 2 Oct 2020 08:29:20 -0500 Subject: [PATCH] hide flag status for non logged in users remove erroneous anticheat detection reason on kick --- WebfrontCore/Views/Client/Profile/Index.cshtml | 2 +- .../Views/Client/Profile/Meta/_ReceivedPenaltyResponse.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WebfrontCore/Views/Client/Profile/Index.cshtml b/WebfrontCore/Views/Client/Profile/Index.cshtml index 5bf2fd2b7..36fdaa264 100644 --- a/WebfrontCore/Views/Client/Profile/Index.cshtml +++ b/WebfrontCore/Views/Client/Profile/Index.cshtml @@ -50,7 +50,7 @@ } } - @if (Model.ActivePenalty != null) + @if (Model.ActivePenalty != null && (Model.ActivePenalty.Type != EFPenalty.PenaltyType.Flag || ViewBag.Authorized)) {
@foreach (var result in Utilities.SplitTranslationTokens(translationKey)) diff --git a/WebfrontCore/Views/Client/Profile/Meta/_ReceivedPenaltyResponse.cshtml b/WebfrontCore/Views/Client/Profile/Meta/_ReceivedPenaltyResponse.cshtml index bb06fc1a7..205d99334 100644 --- a/WebfrontCore/Views/Client/Profile/Meta/_ReceivedPenaltyResponse.cshtml +++ b/WebfrontCore/Views/Client/Profile/Meta/_ReceivedPenaltyResponse.cshtml @@ -28,7 +28,7 @@ else if (match.MatchValue == "reason") { - @if (ViewBag.Authorized && !string.IsNullOrEmpty(Model.AutomatedOffense) && Model.PenaltyType != SharedLibraryCore.Database.Models.EFPenalty.PenaltyType.Warning) + @if (ViewBag.Authorized && !string.IsNullOrEmpty(Model.AutomatedOffense) && Model.PenaltyType != SharedLibraryCore.Database.Models.EFPenalty.PenaltyType.Warning && Model.PenaltyType != SharedLibraryCore.Database.Models.EFPenalty.PenaltyType.Kick) { @Utilities.FormatExt(ViewBag.Localization["WEBFRONT_PROFILE_ANTICHEAT_DETECTION"], Model.AutomatedOffense)