calendar: fix for bug #129 'Search ignores privacy' - like discussed with Lars on the forum - I think I checked all dependencies and hope that this will not break other searches in calendar - maybe Ralf wants to review this

This commit is contained in:
Christian Binder 2007-02-21 22:00:48 +00:00
parent d160582449
commit e0ed67a715

View File

@ -372,7 +372,16 @@ class bocal
}
if (!$this->check_perms(EGW_ACL_READ,$event) || (!$event['public'] && $filter == 'hideprivate'))
{
$this->clear_private_infos($events[$id],$users);
if($params['query'])
{
unset($events[$id]);
$this->total--;
continue;
}
else
{
$this->clear_private_infos($events[$id],$users);
}
}
}