This commit is contained in:
2025-05-28 13:34:48 -07:00
parent 65a433e9ab
commit 7eba0fa25a
87 changed files with 3775 additions and 1351 deletions

View File

@ -42,8 +42,8 @@
@*<li>@Html.ActionLink("Home", "Index", "Home")</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>*@
@if (Session[GlobalVars.IS_ADMIN] != null) {
if ((bool)Session[GlobalVars.IS_ADMIN] && (Request.IsAuthenticated))
@if (GlobalVars.IsAdminValueNotNull(Session)) {
if (GlobalVars.IsAdmin(Session) && (Request.IsAuthenticated))
{
<li>@Html.ActionLink("Admin", "Index", "Admin")</li>
}