fix principal constructor for dav
This commit is contained in:
parent
df2abda814
commit
56c3686ad6
|
@ -24,7 +24,6 @@ $cm->register(function() use ($cm) {
|
||||||
$db = \OC::$server->getDatabaseConnection();
|
$db = \OC::$server->getDatabaseConnection();
|
||||||
$userId = \OC::$server->getUserSession()->getUser()->getUID();
|
$userId = \OC::$server->getUserSession()->getUser()->getUID();
|
||||||
$principal = new \OCA\DAV\Connector\Sabre\Principal(
|
$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());
|
$cardDav = new \OCA\DAV\CardDAV\CardDavBackend($db, $principal, \OC::$server->getLogger());
|
||||||
|
|
Loading…
Reference in New Issue