This commit is contained in:
@@ -16,7 +16,6 @@ namespace AyaNova.DataList
|
||||
internal static async Task<ApiDataListResponse> GetResponseAsync(string DataListKey, AyContext ct, ListOptions listOptions, long UserId, AuthorizationRoles UserRoles)
|
||||
{
|
||||
|
||||
|
||||
var DataList = DataListFactory.GetAyaDataList(DataListKey);
|
||||
|
||||
//was the name not found as a list?
|
||||
@@ -30,6 +29,12 @@ namespace AyaNova.DataList
|
||||
if (!UserRoles.HasAnyFlags(DataList.AllowedRoles))
|
||||
throw new System.UnauthorizedAccessException("User roles insufficient for this datalist");
|
||||
|
||||
//do we need to default the listView?
|
||||
if (string.IsNullOrWhiteSpace(listOptions.ListView))
|
||||
{
|
||||
listOptions.ListView = DataList.DefaultListView;
|
||||
}
|
||||
|
||||
//parse the list view
|
||||
var ListViewArray = JArray.Parse(listOptions.ListView);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user