This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user