From 17502d695b2d393b4757661412467c518d33b034 Mon Sep 17 00:00:00 2001 From: "Jamie.Rees" Date: Fri, 16 Dec 2016 08:30:12 +0000 Subject: [PATCH 1/7] #785 --- PlexRequests.UI/Modules/DonationLinkModule.cs | 9 +++------ PlexRequests.UI/Views/Shared/Partial/_Navbar.cshtml | 4 ---- appveyor.yml | 4 ++-- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/PlexRequests.UI/Modules/DonationLinkModule.cs b/PlexRequests.UI/Modules/DonationLinkModule.cs index 3bb4f8f1b..39168dad7 100644 --- a/PlexRequests.UI/Modules/DonationLinkModule.cs +++ b/PlexRequests.UI/Modules/DonationLinkModule.cs @@ -18,7 +18,6 @@ public class DonationLinkModule : BaseAuthModule public DonationLinkModule(ICacheProvider provider, ISettingsService pr, ISecurityExtensions security) : base("customDonation", pr, security) { Cache = provider; - Get["/", true] = async (x, ct) => await GetCustomDonationUrl(pr); } @@ -31,14 +30,12 @@ private async Task GetCustomDonationUrl(ISettingsService @@ -48,12 +47,10 @@ } - @*@if (Context.Request.Session[SessionKeys.UsernameKey] != null && !Context.CurrentUser.IsAuthenticated())*@ else if (Html.IsNormalUser()) // Logged in but not admin { } - - diff --git a/PlexRequests.UI/Views/Shared/Partial/_Navbar.cshtml b/PlexRequests.UI/Views/Shared/Partial/_Navbar.cshtml index 17149fc90..f94fa0881 100644 --- a/PlexRequests.UI/Views/Shared/Partial/_Navbar.cshtml +++ b/PlexRequests.UI/Views/Shared/Partial/_Navbar.cshtml @@ -93,6 +93,17 @@ } + else if (Html.IsLoggedIn(Context)) // Logged in but not admin + { + + + } +