prevent loading of privileged clients page for issue #188
This commit is contained in:
parent
a8b331a5e5
commit
824b1c0990
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user