示例#1
0
 function getChildACL()
 {
     $acl = parent::getChildACL();
     /** @var CalDavBackend $calDavBackend */
     $calDavBackend = $this->caldavBackend;
     return $calDavBackend->applyShareAcl($this->getResourceId(), $acl);
 }
示例#2
0
 /**
  * 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;
 }