diff --git a/ProjectLighthouse.Servers.Website/Pages/SlotPage.cshtml b/ProjectLighthouse.Servers.Website/Pages/SlotPage.cshtml index 44ade1fb..9ea6a029 100644 --- a/ProjectLighthouse.Servers.Website/Pages/SlotPage.cshtml +++ b/ProjectLighthouse.Servers.Website/Pages/SlotPage.cshtml @@ -16,7 +16,7 @@ Model.ShowTitleInPage = false; Model.Title = HttpUtility.HtmlDecode(Model.Slot?.Name ?? ""); - Model.Description = HttpUtility.HtmlDecode(Model.Slot?.Description ?? ""); + if (Model.CanViewSlot) Model.Description = HttpUtility.HtmlDecode(Model.Slot?.Description ?? ""); bool isMobile = Request.IsMobile(); string language = Model.GetLanguage(); diff --git a/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml b/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml index a24a3ddb..d675e8c1 100644 --- a/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml +++ b/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml @@ -13,7 +13,7 @@ Model.ShowTitleInPage = false; Model.Title = Model.Translate(ProfileStrings.Title, Model.ProfileUser!.Username); - Model.Description = Model.ProfileUser!.Biography; + if (Model.CanViewProfile) Model.Description = Model.ProfileUser!.Biography; bool isMobile = Request.IsMobile(); string language = Model.GetLanguage();