From f17a6abda34d4f5929a3416a054eeb705daebadd Mon Sep 17 00:00:00 2001 From: jvyden Date: Sun, 14 Aug 2022 17:03:35 -0400 Subject: [PATCH] Dont show granted slots partial for moderators --- ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml b/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml index 6c0f3045..1a7432fb 100644 --- a/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml +++ b/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml @@ -151,6 +151,9 @@ - @await Html.PartialAsync("Partials/AdminSetGrantedSlotsFormPartial", Model.ProfileUser) + @if (Model.User.IsAdmin) + { + @await Html.PartialAsync("Partials/AdminSetGrantedSlotsFormPartial", Model.ProfileUser) + } } \ No newline at end of file