mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-25 16:33:22 +00:00
fix(core): avoid fetching quick records for non-existant users
This commit is contained in:
@@ -1544,7 +1544,7 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
|
|||||||
_component]];
|
_component]];
|
||||||
}
|
}
|
||||||
else if (![self showCalendarTasks])
|
else if (![self showCalendarTasks])
|
||||||
[baseWhere addObject: @"c_component != 'vtodo'"];
|
[baseWhere addObject: @"c_component != 'vtodo'"];
|
||||||
|
|
||||||
if (_startDate)
|
if (_startDate)
|
||||||
{
|
{
|
||||||
@@ -1564,8 +1564,9 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
|
|||||||
}
|
}
|
||||||
|
|
||||||
privacySQLString = [self aclSQLListingFilter];
|
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])
|
if ([privacySQLString length])
|
||||||
[baseWhere addObject: privacySQLString];
|
[baseWhere addObject: privacySQLString];
|
||||||
|
|||||||
Reference in New Issue
Block a user