case 4144

This commit is contained in:
2022-03-11 19:54:00 +00:00
parent 08559ea956
commit 4b4eeb13c3

View File

@@ -167,6 +167,12 @@ namespace AyaNova.Biz
//Users are only permitted to search their own memo's //Users are only permitted to search their own memo's
if (await ct.Memo.AsNoTracking().AnyAsync(z => z.Id == t.ObjectId && z.ToId == currentUserId)) if (await ct.Memo.AsNoTracking().AnyAsync(z => z.Id == t.ObjectId && z.ToId == currentUserId))
CanReadMatchingObjects.Add(t); CanReadMatchingObjects.Add(t);
}
else if (t.AType == AyaType.Reminder)
{
//Users are only permitted to search their own reminder's
if (await ct.Reminder.AsNoTracking().AnyAsync(z => z.Id == t.ObjectId && z.UserId == currentUserId))
CanReadMatchingObjects.Add(t);
} }
else else
{ {