diff options
author | Anna Larch <anna@nextcloud.com> | 2023-05-11 18:59:30 +0200 |
---|---|---|
committer | Anna Larch <anna@nextcloud.com> | 2023-05-11 18:59:30 +0200 |
commit | 5c2eb732f123c907201a2db36f12f0a269722ce7 (patch) | |
tree | 93f3ac458e66635c7546cf33c81080e00962d088 /apps/dav/appinfo | |
parent | 9d2d3d482bce004d134dd87d7b37c3dfb6513412 (diff) | |
download | nextcloud-server-5c2eb732f123c907201a2db36f12f0a269722ce7.tar.gz nextcloud-server-5c2eb732f123c907201a2db36f12f0a269722ce7.zip |
fix(carddav): expose system address book
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/dav/appinfo')
-rw-r--r-- | apps/dav/appinfo/v1/carddav.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/appinfo/v1/carddav.php b/apps/dav/appinfo/v1/carddav.php index 2b3001e80bd..e7faa9314e2 100644 --- a/apps/dav/appinfo/v1/carddav.php +++ b/apps/dav/appinfo/v1/carddav.php @@ -10,6 +10,7 @@ * @author Morris Jobke <hey@morrisjobke.de> * @author Thomas Citharel <nextcloud@tcit.fr> * @author Thomas Müller <thomas.mueller@tmit.eu> + * @author Anna Larch <anna.larch@gmx.net> * * @license AGPL-3.0 * @@ -72,7 +73,7 @@ $principalCollection = new \Sabre\CalDAV\Principal\Collection($principalBackend) $principalCollection->disableListing = !$debugging; // Disable listing $pluginManager = new PluginManager(\OC::$server, \OC::$server->query(IAppManager::class)); -$addressBookRoot = new AddressBookRoot($principalBackend, $cardDavBackend, $pluginManager); +$addressBookRoot = new AddressBookRoot($principalBackend, $cardDavBackend, $pluginManager, \OC::$server->getUserSession()->getUser(), \OC::$server->get(\OCP\IGroupManager::class)); $addressBookRoot->disableListing = !$debugging; // Disable listing $nodes = [ |