Merge pull request #21613 from owncloud/dav-fix-constructor
fix principal constructor for dav
This commit is contained in:
commit
3143555256
1 changed files with 1 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue