* CalDAV/Calendar: fixed not working status change, if participant has no edit rights

This commit is contained in:
Ralf Becker 2013-01-15 13:12:32 +00:00
parent acbf3c4301
commit 5b832b9596

View File

@ -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 no edit-rights (aka no organizer), update only attendee stuff: status and alarms
if (!$this->check_access(EGW_ACL_EDIT, $oldEvent)) 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!"); if ($this->debug) error_log(__METHOD__."(,,$user) user $user is NOT an attendee!");
return '403 Forbidden'; return '403 Forbidden';