This commit is contained in:
@@ -43,7 +43,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// <summary>
|
||||
/// Get list of data for selection / viewing
|
||||
///
|
||||
/// Required roles: Varies by list
|
||||
/// Required roles: Varies by list, if not allowed will return 403 - Not Authorized
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="listOptions">List key, Paging, filtering and sorting options</param>
|
||||
@@ -57,10 +57,9 @@ namespace AyaNova.Api.Controllers
|
||||
if (!ModelState.IsValid)
|
||||
return BadRequest(new ApiErrorResponse(ModelState));
|
||||
|
||||
|
||||
|
||||
long UserId = UserIdFromContext.Id(HttpContext.Items);
|
||||
var UserId = UserIdFromContext.Id(HttpContext.Items);
|
||||
var UserRoles = UserRolesFromContext.Roles(HttpContext.Items);
|
||||
|
||||
try
|
||||
{
|
||||
ApiPagedResponse pr = await DataListFetcher.GetResponse(listOptions.DataListKey, ct, Url, nameof(List), listOptions, UserId, UserRoles);
|
||||
|
||||
Reference in New Issue
Block a user