* Calendar/CalDAV: fixed recuring event disapeared from device, if a rejected recurrence existed and a change from an other user caused a reload (412 Precondition Failed)

This commit is contained in:
Ralf Becker 2013-03-14 14:48:40 +00:00
parent 73b2c5cd78
commit 166335f16e
2 changed files with 2 additions and 2 deletions

View File

@ -1160,7 +1160,7 @@ class calendar_bo
elseif (!is_numeric($uid))
{
// if the owner only grants EGW_ACL_FREEBUSY we are not interested in the recources explicit rights
if ($grant == EGW_ACL_FREEBUSY) break;
if ($grant == EGW_ACL_FREEBUSY) continue;
// if we have a resource as participant
$resource = $this->resource_info($uid);
$grant |= $resource['rights'];

View File

@ -1286,7 +1286,7 @@ class calendar_groupdav extends groupdav_handler
{
if (strpos($column=self::$path_attr,'_') === false) $column = 'cal_'.$column;
$event = $this->bo->read(array($column => $id, 'cal_deleted IS NULL'), null, true, 'server');
$event = $this->bo->read(array($column => $id, 'cal_deleted IS NULL', 'cal_reference=0'), null, true, 'server');
if ($event) $event = array_shift($event); // read with array as 1. param, returns an array of events!
if (!($retval = $this->bo->check_perms(EGW_ACL_FREEBUSY,$event, 0, 'server')))