mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
* Calendar: fixed groupmembers cant accept/reject group-invitations in listview via context-menu (error: failed because of insufficient rights!)
This commit is contained in:
parent
638d4c639b
commit
7efd0f6ff0
@ -1061,8 +1061,13 @@ class calendar_boupdate extends calendar_bo
|
||||
}
|
||||
if (!is_array($event) && !($event = $this->read($event))) return false;
|
||||
|
||||
// regular user and groups
|
||||
return isset($event['participants'][$uid]) && $this->check_perms(EGW_ACL_EDIT,0,$uid);
|
||||
// regular user and groups (need to check memberships too)
|
||||
if (!isset($event['participants'][$uid]))
|
||||
{
|
||||
$memberships = $GLOBALS['egw']->accounts->memberships($uid,true);
|
||||
}
|
||||
$memberships[] = $uid;
|
||||
return array_intersect($memberships, array_keys($event['participants'])) && $this->check_perms(EGW_ACL_EDIT,0,$uid);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user