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

fix authorize issue on penalty info after upgrading .NET Core runtime targets

This commit is contained in:
RaidMax
2019-12-25 21:05:57 -06:00
parent 0405eec114
commit 9629f802e1
3 changed files with 8 additions and 1 deletions

View File

@ -114,13 +114,13 @@ namespace WebfrontCore
app.UseStaticFiles();
app.UseAuthentication();
app.UseAuthorization();
app.UseCors("AllowAll");
// prevents banned/demoted users from keeping their claims
app.UseMiddleware<ClaimsPermissionRemoval>(Program.Manager);
app.UseRouting();
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}");