From 7956f9f7ffdf2c0fc25bec2a85e0914d2f3bc65c Mon Sep 17 00:00:00 2001 From: tidusjar Date: Tue, 28 Jun 2016 14:09:02 +0100 Subject: [PATCH] Made it so users that are in the whitelist do not have a request limit --- PlexRequests.UI/Modules/SearchModule.cs | 3 +++ PlexRequests.UI/Views/Admin/Settings.cshtml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/PlexRequests.UI/Modules/SearchModule.cs b/PlexRequests.UI/Modules/SearchModule.cs index b5b407a80..fb15377d4 100644 --- a/PlexRequests.UI/Modules/SearchModule.cs +++ b/PlexRequests.UI/Modules/SearchModule.cs @@ -880,6 +880,9 @@ namespace PlexRequests.UI.Modules if (IsAdmin) return true; + if (s.ApprovalWhiteList.Contains(Username)) + return true; + var requestLimit = GetRequestLimitForType(type, s); if (requestLimit == 0) { diff --git a/PlexRequests.UI/Views/Admin/Settings.cshtml b/PlexRequests.UI/Views/Admin/Settings.cshtml index 9f1a664e9..79aa9eb47 100644 --- a/PlexRequests.UI/Views/Admin/Settings.cshtml +++ b/PlexRequests.UI/Views/Admin/Settings.cshtml @@ -226,7 +226,7 @@ -

A comma separated list of users whose requests do not require approval.

+

A comma separated list of users whose requests do not require approval (These users also do not have a request limit).