我有代码:
[Authorize(Roles = "SuperAdministrators")]
public class ButtonStyleController : ControllerBase
{
在其他地方:
[Authorize(Roles = "SuperAdministrators,CompanyAdministrators")]
public class BankController : ControllerBase
{
乃至:
[Authorize(Roles = "CompanyAdministrators")]
public class DriverController : ApiControllerBase
{
我需要检查代码中当前控制器允许哪些角色。是否可以?
12345678_0001
相关分类