From d44fb89b033b7a78160673caf4d5cedff1be549a Mon Sep 17 00:00:00 2001 From: koko <68549366+sudokoko@users.noreply.github.com> Date: Thu, 26 Jan 2023 19:42:59 -0500 Subject: [PATCH 1/2] Fix comments not being disabled if banned --- .../Pages/Partials/CommentsPartial.cshtml | 109 +++++++++--------- 1 file changed, 56 insertions(+), 53 deletions(-) diff --git a/ProjectLighthouse.Servers.Website/Pages/Partials/CommentsPartial.cshtml b/ProjectLighthouse.Servers.Website/Pages/Partials/CommentsPartial.cshtml index 349ee6b5..80182239 100644 --- a/ProjectLighthouse.Servers.Website/Pages/Partials/CommentsPartial.cshtml +++ b/ProjectLighthouse.Servers.Website/Pages/Partials/CommentsPartial.cshtml @@ -1,4 +1,4 @@ -@using System.Web +@using System.Web @using System.IO @using LBPUnion.ProjectLighthouse.Localization @using LBPUnion.ProjectLighthouse.PlayerData.Profiles @@ -36,7 +36,7 @@
There @(count == 1 ? "is" : "are") @count comment@(count == 1 ? "" : "s").
} - @if (Model.CommentsEnabled && Model.User != null) + @if (!Model.ProfileUser.IsBanned && Model.CommentsEnabled && Model.User != null) {