mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 18:33:39 +01:00
* Calendar/EMail: allow to accept, reject, tentative group invitations (gave error "You are not invited..." previously)
This commit is contained in:
parent
ea157ce34d
commit
fcd9862198
@ -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'])
|
||||||
|
Loading…
Reference in New Issue
Block a user