mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
* CalDAV/Calendar: fixed not working status change, if participant has no edit rights
This commit is contained in:
parent
acbf3c4301
commit
5b832b9596
@ -750,7 +750,9 @@ class calendar_groupdav extends groupdav_handler
|
||||
// if no edit-rights (aka no organizer), update only attendee stuff: status and alarms
|
||||
if (!$this->check_access(EGW_ACL_EDIT, $oldEvent))
|
||||
{
|
||||
if (isset($oldEvent['participants'][$user]))
|
||||
$user_and_memberships = $GLOBALS['egw']->accounts->memberships($user, true);
|
||||
$user_and_memberships[] = $user;
|
||||
if (!array_intersect(array_keys($oldEvent['participants']), $user_and_memberships))
|
||||
{
|
||||
if ($this->debug) error_log(__METHOD__."(,,$user) user $user is NOT an attendee!");
|
||||
return '403 Forbidden';
|
||||
|
Loading…
Reference in New Issue
Block a user