@using System.Linq @using PlexRequests.Core.Models @using PlexRequests.UI.Helpers @{ var baseUrl = Html.GetBaseUrl(); var formAction = string.Empty; if (!string.IsNullOrEmpty(baseUrl.ToHtmlString())) { formAction = "/" + baseUrl.ToHtmlString(); } var isAdmin = false; if (Context.CurrentUser != null) { var claims = Context.CurrentUser.Claims.ToList(); if (claims.Contains("Admin") || claims.Contains("PowerUser")) { isAdmin = true; } } }