mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-01 09:48:37 +00:00
Fix incorrect logic when determining if a user can view a hidden level
This commit is contained in:
parent
0471b02472
commit
4892110650
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ public class SlotPage : BaseLayout
|
|||
}
|
||||
}
|
||||
|
||||
if (slot.Hidden || slot.SubLevel && this.User == null && this.User != slot.Creator || !this.User!.IsModerator)
|
||||
if (slot.Hidden || slot.SubLevel && (this.User == null && this.User != slot.Creator || !(this.User?.IsModerator ?? false)))
|
||||
return this.NotFound();
|
||||
|
||||
this.Slot = slot;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue