Skip to content
This repository has been archived by the owner on Oct 31, 2018. It is now read-only.

Commit

Permalink
Overwrite getMultipleChildren
Browse files Browse the repository at this point in the history
Overwrite getMultipleChildren to create calendar objects of OC_Connector_Sabre_CalDAV_CalendarObject which return the correct ACL for shared calendars.
  • Loading branch information
gvde authored and georgehrke committed Aug 12, 2015
1 parent 6d68a0c commit 097baf4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/sabre/calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,21 @@ public function getChildren() {

}

/**
* This method receives a list of paths in it's first argument.
* It must return an array with Node objects.
*
* If any children are not found, you do not have to return them.
*
* @return array
*/
public function getMultipleChildren(array $paths) {
$objs = $this->caldavBackend->getMultipleCalendarObjects($this->calendarInfo['id'], $paths);
$children = [];
foreach($objs as $obj) {
$children[] = new OC_Connector_Sabre_CalDAV_CalendarObject($this->caldavBackend,$this->calendarInfo,$obj);
}
return $children;
}

}

0 comments on commit 097baf4

Please sign in to comment.