mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 23:31:13 -05:00
prevent loading of privileged clients page for issue #188
This commit is contained in:
@ -120,6 +120,11 @@ namespace WebfrontCore.Controllers
|
|||||||
|
|
||||||
public async Task<IActionResult> PrivilegedAsync()
|
public async Task<IActionResult> PrivilegedAsync()
|
||||||
{
|
{
|
||||||
|
if (Manager.GetApplicationSettings().Configuration().EnablePrivilegedUserPrivacy && !Authorized)
|
||||||
|
{
|
||||||
|
return RedirectToAction("Index", "Home");
|
||||||
|
}
|
||||||
|
|
||||||
var admins = (await Manager.GetClientService().GetPrivilegedClients())
|
var admins = (await Manager.GetClientService().GetPrivilegedClients())
|
||||||
.OrderByDescending(_client => _client.Level)
|
.OrderByDescending(_client => _client.Level)
|
||||||
.ThenBy(_client => _client.Name);
|
.ThenBy(_client => _client.Name);
|
||||||
|
Reference in New Issue
Block a user