diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-07-08 16:13:34 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-09-26 11:55:36 +0200 |
commit | 90ab6e4fd9b25a8f031f812d46915e8413483be2 (patch) | |
tree | 4184b569d30f621484a0301c22e065a2d641ffbb /apps/dav/lib/RootCollection.php | |
parent | 8da2100e7d5cc7819624a803e10b18f53ccacd9d (diff) | |
download | nextcloud-server-90ab6e4fd9b25a8f031f812d46915e8413483be2.tar.gz nextcloud-server-90ab6e4fd9b25a8f031f812d46915e8413483be2.zip |
Add new root collection public-calendars which holds all public calendars
Diffstat (limited to 'apps/dav/lib/RootCollection.php')
-rw-r--r-- | apps/dav/lib/RootCollection.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dav/lib/RootCollection.php b/apps/dav/lib/RootCollection.php index 974d08bc34f..f7b9c7079a0 100644 --- a/apps/dav/lib/RootCollection.php +++ b/apps/dav/lib/RootCollection.php @@ -26,6 +26,7 @@ namespace OCA\DAV; use OCA\DAV\CalDAV\CalDavBackend; use OCA\DAV\CalDAV\CalendarRoot; +use OCA\DAV\CalDAV\PublicCalendarRoot; use OCA\DAV\CardDAV\AddressBookRoot; use OCA\DAV\CardDAV\CardDavBackend; use OCA\DAV\Connector\Sabre\Principal; @@ -62,6 +63,8 @@ class RootCollection extends SimpleCollection { $caldavBackend = new CalDavBackend($db, $userPrincipalBackend, \OC::$server->getUserManager()); $calendarRoot = new CalendarRoot($userPrincipalBackend, $caldavBackend, 'principals/users'); $calendarRoot->disableListing = $disableListing; + $publicCalendarRoot = new PublicCalendarRoot($caldavBackend); + $publicCalendarRoot->disableListing = $disableListing; $systemTagCollection = new SystemTag\SystemTagsByIdCollection( \OC::$server->getSystemTagManager(), @@ -101,6 +104,7 @@ class RootCollection extends SimpleCollection { $systemPrincipals]), $filesCollection, $calendarRoot, + $publicCalendarRoot, new SimpleCollection('addressbooks', [ $usersAddressBookRoot, $systemAddressBookRoot]), |