* Calendar/EMail: allow to accept, reject, tentative group invitations (gave error "You are not invited..." previously)

This commit is contained in:
Ralf Becker 2012-06-12 16:18:44 +00:00
parent ea157ce34d
commit fcd9862198

View File

@ -1690,7 +1690,9 @@ function replace_eTemplate_onsubmit()
$event['recure'] = $this->bo->recure2string($event); $event['recure'] = $this->bo->recure2string($event);
$event['all_participants'] = implode(",\n",$this->bo->participants($event, true)); $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!'); $msg .= ($msg ? "\n" : '').lang('You are not invited to that event!');
if ($event['id']) if ($event['id'])