Right in the middle of conversion, not compilable yet
This commit is contained in:
@@ -4,7 +4,7 @@ using AyaNova.Models;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class ReminderDataList : AyaDataList, IAyaDataListViewServerCriteria
|
||||
internal class ReminderDataList : AyaDataList, IAyaDataListServerCriteria
|
||||
{
|
||||
public ReminderDataList()
|
||||
{
|
||||
@@ -114,9 +114,9 @@ namespace AyaNova.DataList
|
||||
}
|
||||
|
||||
//Ensure only current user can fetch their reminders
|
||||
string IAyaDataListViewServerCriteria.ListViewServerCriteria(User user, AyContext ct)
|
||||
string IAyaDataListServerCriteria.DataListServerCriteria(AyaNova.Models.AyContext ct, long currentUserId, DataListOptions dataListOptions)
|
||||
{
|
||||
return "[{\"fld\":\"metareminderuser\",\"filter\":{\"items\":[{\"op\":\"=\",\"value\":" + user.Id.ToString() + "}]}}]";
|
||||
return "[{\"fld\":\"metareminderuser\",\"filter\":{\"items\":[{\"op\":\"=\",\"value\":" + currentUserId.ToString() + "}]}}]";
|
||||
}
|
||||
|
||||
}//eoc
|
||||
|
||||
Reference in New Issue
Block a user