Merge pull request #21613 from owncloud/dav-fix-constructor

fix principal constructor for dav
This commit is contained in:
Thomas Müller 2016-01-11 14:21:31 +01:00
commit 3143555256

View file

@ -24,8 +24,7 @@ $cm->register(function() use ($cm) {
$db = \OC::$server->getDatabaseConnection();
$userId = \OC::$server->getUserSession()->getUser()->getUID();
$principal = new \OCA\DAV\Connector\Sabre\Principal(
\OC::$server->getConfig(),
\OC::$server->getUserManager()
\OC::$server->getUserManager()
);
$cardDav = new \OCA\DAV\CardDAV\CardDavBackend($db, $principal, \OC::$server->getLogger());
$addressBooks = $cardDav->getAddressBooksForUser("principals/$userId");