Don't show private events in search results, even if user has freebusy permission

This commit is contained in:
Nathan Gray 2011-02-17 20:39:10 +00:00
parent 0a71419124
commit 50543c0115

View File

@ -474,13 +474,13 @@ class calendar_bo
}
if ($is_private || (!$event['public'] && $filter == 'hideprivate'))
{
if($params['query'] && !$this->check_perms(EGW_ACL_FREEBUSY,$event))
if($params['query'])
{
unset($events[$id]);
$this->total--;
continue;
}
else
elseif($this->check_perms(EGW_ACL_FREEBUSY,$event))
{
$this->clear_private_infos($events[$id],$users);
}