mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 15:48:55 +01:00
* CalDAV: handle deleted events, as not existing (404 Not Found)
This commit is contained in:
parent
e5c80b1044
commit
950c7f24fa
@ -787,11 +787,22 @@ error_log(__METHOD__."($path,,".array2string($start).") filter=".array2string($f
|
||||
{
|
||||
if ($this->debug > 1) error_log("bo-ical read :$id:");
|
||||
$event = $this->bo->read($id, null, true, 'server');
|
||||
if (!($retval = $this->bo->check_perms(EGW_ACL_FREEBUSY, $event, 0, 'server'))) return $retval;
|
||||
|
||||
if (!($retval = $this->bo->check_perms(EGW_ACL_FREEBUSY,$event, 0, 'server')))
|
||||
{
|
||||
if ($this->debug > 0) error_log(__METHOD__."($id) no READ or FREEBUSY rights returning ".array2string($retval));
|
||||
return $retval;
|
||||
}
|
||||
|
||||
if (!$this->bo->check_perms(EGW_ACL_READ, $event, 0, 'server'))
|
||||
{
|
||||
$this->bo->clear_private_infos($event, array($this->bo->user, $event['owner']));
|
||||
}
|
||||
// handle deleted events, as not existing
|
||||
if ($event['deleted']) $event = null;
|
||||
|
||||
if ($this->debug > 1) error_log(__METHOD__."($id) returning ".array2string($event));
|
||||
|
||||
return $event;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user