From 4be8efc244ea7f016ec7f30d72e9572ca3a1aca0 Mon Sep 17 00:00:00 2001 From: jvyden Date: Sun, 14 Aug 2022 18:39:05 -0400 Subject: [PATCH] Fix mods not being able to view hidden levels --- ProjectLighthouse.Servers.Website/Pages/SlotPage.cshtml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectLighthouse.Servers.Website/Pages/SlotPage.cshtml.cs b/ProjectLighthouse.Servers.Website/Pages/SlotPage.cshtml.cs index 3947492d..2b34cd57 100644 --- a/ProjectLighthouse.Servers.Website/Pages/SlotPage.cshtml.cs +++ b/ProjectLighthouse.Servers.Website/Pages/SlotPage.cshtml.cs @@ -54,7 +54,7 @@ public class SlotPage : BaseLayout } } - if (slot.Hidden || slot.SubLevel && (this.User == null && this.User != slot.Creator || !(this.User?.IsModerator ?? false))) + if ((slot.Hidden || slot.SubLevel && (this.User == null && this.User != slot.Creator)) && !(this.User?.IsModerator ?? false)) return this.NotFound(); this.Slot = slot;