function getChildACL() { $acl = parent::getChildACL(); /** @var CalDavBackend $calDavBackend */ $calDavBackend = $this->caldavBackend; return $calDavBackend->applyShareAcl($this->getResourceId(), $acl); }
/** * This method returns the ACL's for calendar objects in this calendar. * The result of this method automatically gets passed to the * calendar-object nodes in the calendar. * * @return array */ function getChildACL() { $acl = parent::getChildACL(); $acl[] = ['privilege' => '{DAV:}read', 'principal' => $this->calendarInfo['principaluri'], 'protected' => true]; if (!$this->calendarInfo['{http://sabredav.org/ns}read-only']) { $acl[] = ['privilege' => '{DAV:}write', 'principal' => $this->calendarInfo['principaluri'], 'protected' => true]; } return $acl; }