From 2be7bab3ed09bff70843bd02fbb5fee2fcfce2da Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Tue, 30 Jun 2020 13:22:17 -0400 Subject: [PATCH] fix(core): avoid fetching quick records for non-existant users --- SoObjects/Appointments/SOGoAppointmentFolder.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SoObjects/Appointments/SOGoAppointmentFolder.m b/SoObjects/Appointments/SOGoAppointmentFolder.m index 5ee33f5fc..27a773f3d 100644 --- a/SoObjects/Appointments/SOGoAppointmentFolder.m +++ b/SoObjects/Appointments/SOGoAppointmentFolder.m @@ -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];