mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 09:58:16 +01:00
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:
parent
d160582449
commit
e0ed67a715
@ -371,10 +371,19 @@ class bocal
|
||||
$events[$id] = $event;
|
||||
}
|
||||
if (!$this->check_perms(EGW_ACL_READ,$event) || (!$event['public'] && $filter == 'hideprivate'))
|
||||
{
|
||||
if($params['query'])
|
||||
{
|
||||
unset($events[$id]);
|
||||
$this->total--;
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->clear_private_infos($events[$id],$users);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($daywise)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user