1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 07:13:58 -05:00

prevent loading of privileged clients page for issue #188

This commit is contained in:
RaidMax
2021-03-23 10:28:17 -05:00
parent 4316f1bfab
commit a4bdbcacb9

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);