Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps/dav
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-26 15:02:10 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-26 15:02:10 +0300
commit26201bd4140efac6beb29748ea1fa924f9e4242b (patch)
treee0e48843bb8155b0cee57ee010294f7860718aae /apps/dav
parentc79496b5a3ac05f607e4ac0d4036da42e120d28f (diff)
Adding required parameters of ctor of class Auth
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/server.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dav/lib/server.php b/apps/dav/lib/server.php
index fa572eb30d1..055c5a5fc2c 100644
--- a/apps/dav/lib/server.php
+++ b/apps/dav/lib/server.php
@@ -21,7 +21,10 @@ class Server {
$this->server = new \OCA\DAV\Connector\Sabre\Server($root);
// Backends
- $authBackend = new Auth();
+ $authBackend = new Auth(
+ \OC::$server->getSession(),
+ \OC::$server->getUserSession()
+ );
// Set URL explicitly due to reverse-proxy situations
$this->server->httpRequest->setUrl($this->request->getRequestUri());