This commit is contained in:
Дмитрий Шиманский
2023-11-09 00:24:18 +03:00
parent 0b218a4c6d
commit dde8b38520
16 changed files with 243 additions and 40 deletions

View File

@@ -29,5 +29,12 @@ namespace DiscordApp.Controllers
})
.ToArray();
}
public static async Task<bool> isAllowed(IServiceProvider services)
{
var context = services.GetRequiredService<ActionContext>();
if (context.HttpContext.Request.Cookies["geff"] == "ok") { return true; }
else { return false; }
}
}
}