Skip to content

Commit ad133ee

Browse files
authored
Merge pull request #65201 from nextcloud/backport/65200/stable27
[stable27] refactor(dav): replace sabre collection
2 parents 1b1a0d0 + 30ead7a commit ad133ee

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎apps/dav/appinfo/v1/caldav.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
use OC\KnownUser\KnownUserService;
3030
use OCA\DAV\CalDAV\CalDavBackend;
3131
use OCA\DAV\CalDAV\Security\RateLimitingPlugin;
32+
use OCA\DAV\CalDAV\Principal\Collection as PrincipalCollection;
3233
use OCA\DAV\CalDAV\Validation\CalDavValidatePlugin;
3334
use OCA\DAV\Connector\LegacyDAVACL;
3435
use OCA\DAV\CalDAV\CalendarRoot;
@@ -83,7 +84,7 @@
8384
$sendInvitations = \OC::$server->getConfig()->getAppValue('dav', 'sendInvitations', 'yes') === 'yes';
8485

8586
// Root nodes
86-
$principalCollection = new \Sabre\CalDAV\Principal\Collection($principalBackend);
87+
$principalCollection = new PrincipalCollection($principalBackend);
8788
$principalCollection->disableListing = !$debugging; // Disable listing
8889

8990
$addressBookRoot = new CalendarRoot($principalBackend, $calDavBackend, 'principals', $logger);

‎apps/dav/appinfo/v1/carddav.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
use OCA\DAV\CardDAV\AddressBookRoot;
3434
use OCA\DAV\CardDAV\CardDavBackend;
3535
use OCA\DAV\CardDAV\Security\CardDavRateLimitingPlugin;
36+
use OCA\DAV\CalDAV\Principal\Collection as PrincipalCollection;
3637
use OCA\DAV\CardDAV\Validation\CardDavValidatePlugin;
3738
use OCA\DAV\Connector\LegacyDAVACL;
3839
use OCA\DAV\Connector\Sabre\Auth;
@@ -71,7 +72,7 @@
7172
$debugging = \OC::$server->getConfig()->getSystemValue('debug', false);
7273

7374
// Root nodes
74-
$principalCollection = new \Sabre\CalDAV\Principal\Collection($principalBackend);
75+
$principalCollection = new PrincipalCollection($principalBackend);
7576
$principalCollection->disableListing = !$debugging; // Disable listing
7677

7778
$pluginManager = new PluginManager(\OC::$server, \OC::$server->query(IAppManager::class));

0 commit comments

Comments
 (0)