Beispiel #1
0
 /**
  * Returns the list of supported privileges for this node.
  *
  * The returned data structure is a list of nested privileges.
  * See Sabre\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple
  * standard structure.
  *
  * If null is returned from this method, the default privilege set is used,
  * which is fine for most common usecases.
  *
  * @return array|null
  */
 function getSupportedPrivilegeSet()
 {
     $ns = '{' . CalDAV\Plugin::NS_CALDAV . '}';
     $default = DAVACL\Plugin::getDefaultSupportedPrivilegeSet();
     $default['aggregates'][] = ['privilege' => $ns . 'schedule-deliver', 'aggregates' => [['privilege' => $ns . 'schedule-deliver-invite'], ['privilege' => $ns . 'schedule-deliver-reply']]];
     return $default;
 }
Beispiel #2
0
 /**
  * Returns the list of supported privileges for this node.
  *
  * The returned data structure is a list of nested privileges.
  * See \Sabre\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple
  * standard structure.
  *
  * If null is returned from this method, the default privilege set is used,
  * which is fine for most common usecases.
  *
  * @return array|null
  */
 function getSupportedPrivilegeSet()
 {
     $default = DAVACL\Plugin::getDefaultSupportedPrivilegeSet();
     // We need to inject 'read-free-busy' in the tree, aggregated under
     // {DAV:}read.
     foreach ($default['aggregates'] as &$agg) {
         if ($agg['privilege'] !== '{DAV:}read') {
             continue;
         }
         $agg['aggregates'][] = ['privilege' => '{' . Plugin::NS_CALDAV . '}read-free-busy'];
     }
     return $default;
 }
Beispiel #3
0
 /**
  * Returns the list of supported privileges for this node.
  *
  * The returned data structure is a list of nested privileges.
  * See Sabre\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple
  * standard structure.
  *
  * If null is returned from this method, the default privilege set is used,
  * which is fine for most common usecases.
  *
  * @return array|null
  */
 public function getSupportedPrivilegeSet()
 {
     $default = DAVACL\Plugin::getDefaultSupportedPrivilegeSet();
     $default['aggregates'][] = array('privilege' => '{' . CalDAV\Plugin::NS_CALDAV . '}schedule-query-freebusy');
     $default['aggregates'][] = array('privilege' => '{' . CalDAV\Plugin::NS_CALDAV . '}schedule-post-vevent');
     return $default;
 }