Refactor host user security model, support static assets in modules and themes, module definition permissions and categories, paging control, remove SiteUsers, move seed data from script to site template for installation
This commit is contained in:
@ -19,15 +19,15 @@ namespace Oqtane.Controllers
|
||||
|
||||
// GET: api/<controller>?userid=x
|
||||
[HttpGet]
|
||||
public IEnumerable<UserRole> Get(string userid)
|
||||
public IEnumerable<UserRole> Get(string siteid)
|
||||
{
|
||||
if (userid == "")
|
||||
if (siteid == "")
|
||||
{
|
||||
return UserRoles.GetUserRoles();
|
||||
}
|
||||
else
|
||||
{
|
||||
return UserRoles.GetUserRoles(int.Parse(userid));
|
||||
return UserRoles.GetUserRoles(int.Parse(siteid));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user