prevent loading of privileged clients page for issue #188

This commit is contained in:
RaidMax 2021-03-23 10:28:17 -05:00
parent a8b331a5e5
commit 824b1c0990

View File

@ -120,6 +120,11 @@ namespace WebfrontCore.Controllers
public async Task<IActionResult> 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);