This commit is contained in:
2020-12-22 17:55:30 +00:00
parent 4b17cec79a
commit e5bdb635b7
5 changed files with 23 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
using AyaNova.Models;
using AyaNova.Biz;
namespace AyaNova.DataList
{
@@ -17,7 +18,7 @@ namespace AyaNova.DataList
//######## DEFAULT VIEW WHEN NO VIEW CHOSEN ############
dynamic dlistView = new JArray();
dynamic cm = new JObject();
cm.fld = "ReminderName";
dlistView.Add(cm);
@@ -113,9 +114,9 @@ namespace AyaNova.DataList
}
//Ensure only current user can fetch their reminders
string IAyaDataListViewServerCriteria.ListViewServerCriteria(long userId)
string IAyaDataListViewServerCriteria.ListViewServerCriteria(User user, AyContext ct)
{
return "[{\"fld\":\"metareminderuser\",\"filter\":{\"items\":[{\"op\":\"=\",\"value\":" + userId.ToString() + "}]}}]";
return "[{\"fld\":\"metareminderuser\",\"filter\":{\"items\":[{\"op\":\"=\",\"value\":" + user.Id.ToString() + "}]}}]";
}
}//eoc