authorization changes

This commit is contained in:
Shaun Walker
2020-02-17 19:48:26 -05:00
parent 2fa7f852d5
commit 066c616eca
44 changed files with 880 additions and 529 deletions

View File

@ -22,6 +22,7 @@ namespace Oqtane.Controllers
// GET: api/<controller>?userid=x
[HttpGet]
[Authorize]
public IEnumerable<UserRole> Get(string siteid)
{
return UserRoles.GetUserRoles(int.Parse(siteid));
@ -29,6 +30,7 @@ namespace Oqtane.Controllers
// GET api/<controller>/5
[HttpGet("{id}")]
[Authorize]
public UserRole Get(int id)
{
return UserRoles.GetUserRole(id);