Adding required parameters of ctor of class Auth

This commit is contained in:
Thomas Müller 2015-10-26 13:02:10 +01:00
parent c79496b5a3
commit 26201bd414
1 changed files with 4 additions and 1 deletions

View File

@ -21,7 +21,10 @@ class Server {
$this->server = new \OCA\DAV\Connector\Sabre\Server($root); $this->server = new \OCA\DAV\Connector\Sabre\Server($root);
// Backends // Backends
$authBackend = new Auth(); $authBackend = new Auth(
\OC::$server->getSession(),
\OC::$server->getUserSession()
);
// Set URL explicitly due to reverse-proxy situations // Set URL explicitly due to reverse-proxy situations
$this->server->httpRequest->setUrl($this->request->getRequestUri()); $this->server->httpRequest->setUrl($this->request->getRequestUri());