fix(core): avoid fetching quick records for non-existant users

pull/275/head
Ludovic Marcotte 2020-06-30 13:22:17 -04:00
parent 98d12ba17a
commit 2be7bab3ed
1 changed files with 4 additions and 3 deletions

View File

@ -1544,7 +1544,7 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
_component]];
}
else if (![self showCalendarTasks])
[baseWhere addObject: @"c_component != 'vtodo'"];
[baseWhere addObject: @"c_component != 'vtodo'"];
if (_startDate)
{
@ -1564,8 +1564,9 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
}
privacySQLString = [self aclSQLListingFilter];
if (privacySQLString)
// Check for access to classification and also make sure the user is still active
if (privacySQLString && ownerUser)
{
if ([privacySQLString length])
[baseWhere addObject: privacySQLString];