From 2c69644bebe331969143ad728655e097d1a933a8 Mon Sep 17 00:00:00 2001 From: Slendy Date: Fri, 26 May 2023 02:27:11 -0500 Subject: [PATCH] Allow moderators to access individual reports. --- .../Pages/Moderation/ReportPage.cshtml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectLighthouse.Servers.Website/Pages/Moderation/ReportPage.cshtml.cs b/ProjectLighthouse.Servers.Website/Pages/Moderation/ReportPage.cshtml.cs index 66246e99..cadbf479 100644 --- a/ProjectLighthouse.Servers.Website/Pages/Moderation/ReportPage.cshtml.cs +++ b/ProjectLighthouse.Servers.Website/Pages/Moderation/ReportPage.cshtml.cs @@ -20,7 +20,7 @@ public class ReportPage : BaseLayout { UserEntity? user = this.Database.UserFromWebRequest(this.Request); if (user == null) return this.Redirect("~/login"); - if (!user.IsAdmin) return this.NotFound(); + if (!user.IsModerator) return this.NotFound(); GriefReportEntity? report = await this.Database.Reports .Include(r => r.ReportingPlayer)