mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
for group-invitations we need to check memberships of $user too
This commit is contained in:
parent
47110d3735
commit
4755f00f06
@ -698,7 +698,9 @@ class calendar_groupdav extends groupdav_handler
|
|||||||
// not for included exceptions (Lightning): $master['recur_exception'][] = $recurrence['start'];
|
// not for included exceptions (Lightning): $master['recur_exception'][] = $recurrence['start'];
|
||||||
}
|
}
|
||||||
// only add master if we are not expanding and current user participates in master (and not just some exceptions)
|
// only add master if we are not expanding and current user participates in master (and not just some exceptions)
|
||||||
if (!$expand && (!$user || isset($master['participants'][$user])))
|
if (!$expand && (!$user || isset($master['participants'][$user]) ||
|
||||||
|
// for group-invitations we need to check memberships of $user too
|
||||||
|
array_intersect(array_keys($master['participants']), $GLOBALS['egw']->accounts->memberships($user, true))))
|
||||||
{
|
{
|
||||||
$events = array_merge(array($master), $events);
|
$events = array_merge(array($master), $events);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user