1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

ensure that demoted clients are logged out from the webfront

This commit is contained in:
RaidMax
2019-10-07 17:35:37 -05:00
parent 66de7650b1
commit bcb137f8f1
5 changed files with 101 additions and 3 deletions

View File

@ -113,6 +113,9 @@ namespace WebfrontCore
app.UseAuthentication();
app.UseCors("AllowAll");
// prevents banned/demoted users from keeping their claims
app.UseMiddleware<ClaimsPermissionRemoval>(Program.Manager);
app.UseMvc(routes =>
{
routes.MapRoute(