]> git.mxchange.org Git - friendica-addons.git/blob - dav/common/dav_caldav_calendar_virtual.inc.php
Merge pull request #547 from AndyHee/patch-20180315
[friendica-addons.git] / dav / common / dav_caldav_calendar_virtual.inc.php
1 <?php
2
3 class Sabre_CalDAV_Calendar_Virtual extends Sabre_CalDAV_Calendar {
4
5         /**
6          * Returns a list of ACE's for this node.
7          *
8          * Each ACE has the following properties:
9          *   * 'privilege', a string such as {DAV:}read or {DAV:}write. These are
10          *     currently the only supported privileges
11          *   * 'principal', a url to the principal who owns the node
12          *   * 'protected' (optional), indicating that this ACE is not allowed to
13          *      be updated.
14          *
15          * @return array
16          */
17         public function getACL() {
18
19                 return array(
20                         array(
21                                 'privilege' => '{DAV:}read',
22                                 'principal' => $this->calendarInfo['principaluri'],
23                                 'protected' => true,
24                         ),
25                         array(
26                                 'privilege' => '{DAV:}read',
27                                 'principal' => $this->calendarInfo['principaluri'] . '/calendar-proxy-write',
28                                 'protected' => true,
29                         ),
30                         array(
31                                 'privilege' => '{DAV:}read',
32                                 'principal' => $this->calendarInfo['principaluri'] . '/calendar-proxy-read',
33                                 'protected' => true,
34                         ),
35                         array(
36                                 'privilege' => '{' . Sabre_CalDAV_Plugin::NS_CALDAV . '}read-free-busy',
37                                 'principal' => '{DAV:}authenticated',
38                                 'protected' => true,
39                         ),
40
41                 );
42
43         }
44 }