Fix mods not being able to view hidden levels

This commit is contained in:
jvyden 2022-08-14 18:39:05 -04:00
parent e57c8e3013
commit 4be8efc244
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -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;