mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 11:51:43 +02: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;
|
$events[$id] = $event;
|
||||||
}
|
}
|
||||||
if (!$this->check_perms(EGW_ACL_READ,$event) || (!$event['public'] && $filter == 'hideprivate'))
|
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);
|
$this->clear_private_infos($events[$id],$users);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($daywise)
|
if ($daywise)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user