From fcd98621986ac78af9487d9a6f896b1ca21fc9fc Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 12 Jun 2012 16:18:44 +0000 Subject: [PATCH] * Calendar/EMail: allow to accept, reject, tentative group invitations (gave error "You are not invited..." previously) --- calendar/inc/class.calendar_uiforms.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index a1fc6dd5a5..c1b3f79e54 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -1690,7 +1690,9 @@ function replace_eTemplate_onsubmit() $event['recure'] = $this->bo->recure2string($event); $event['all_participants'] = implode(",\n",$this->bo->participants($event, true)); - if (!isset($event['participants'][$user])) + $user_and_memberships = $GLOBALS['egw']->accounts->memberships($user, true); + $user_and_memberships[] = $user; + if (!array_intersect(array_keys($event['participants']), $user_and_memberships)) { $msg .= ($msg ? "\n" : '').lang('You are not invited to that event!'); if ($event['id'])