From 824b1c0990c2902da7211b60ddba4e2a9b63291e Mon Sep 17 00:00:00 2001 From: RaidMax Date: Tue, 23 Mar 2021 10:28:17 -0500 Subject: [PATCH] prevent loading of privileged clients page for issue #188 --- WebfrontCore/Controllers/Client/ClientController.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/WebfrontCore/Controllers/Client/ClientController.cs b/WebfrontCore/Controllers/Client/ClientController.cs index dc7f07605..68de0410b 100644 --- a/WebfrontCore/Controllers/Client/ClientController.cs +++ b/WebfrontCore/Controllers/Client/ClientController.cs @@ -120,6 +120,11 @@ namespace WebfrontCore.Controllers public async Task PrivilegedAsync() { + if (Manager.GetApplicationSettings().Configuration().EnablePrivilegedUserPrivacy && !Authorized) + { + return RedirectToAction("Index", "Home"); + } + var admins = (await Manager.GetClientService().GetPrivilegedClients()) .OrderByDescending(_client => _client.Level) .ThenBy(_client => _client.Name);