Authorizations
This commit is contained in:
parent
205845fac7
commit
997c39703a
13 changed files with 34 additions and 28 deletions
|
|
@ -93,7 +93,7 @@ namespace Yavsc.Controllers
|
|||
return Ok(new { message = "you owned it." });
|
||||
}
|
||||
|
||||
[Authorize(Roles = Constants.AdminGroupName)]
|
||||
[Authorize("AdministratorOnly")]
|
||||
[Produces("application/json")]
|
||||
public async Task<IActionResult> Index()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue