summaryrefslogtreecommitdiffstats
path: root/apps/dav/appinfo/v1
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-10-23 17:26:54 +0200
committerLukas Reschke <lukas@owncloud.com>2015-10-23 17:30:47 +0200
commitcddc9abc06fbe35e5e21a736678ae647ca72d31a (patch)
tree9b7f92ce7d6fca7b3339f7d30bca8a719dcfa713 /apps/dav/appinfo/v1
parent0aaef4c2993f6fd37136904142ed58986b5d8f27 (diff)
downloadnextcloud-server-cddc9abc06fbe35e5e21a736678ae647ca72d31a.tar.gz
nextcloud-server-cddc9abc06fbe35e5e21a736678ae647ca72d31a.zip
Add tests for Sabre Auth plugin + make getCurrentUser compatible
Diffstat (limited to 'apps/dav/appinfo/v1')
-rw-r--r--apps/dav/appinfo/v1/webdav.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dav/appinfo/v1/webdav.php b/apps/dav/appinfo/v1/webdav.php
index 610230fc816..f28736f1f01 100644
--- a/apps/dav/appinfo/v1/webdav.php
+++ b/apps/dav/appinfo/v1/webdav.php
@@ -44,7 +44,10 @@ $serverFactory = new \OCA\DAV\Connector\Sabre\ServerFactory(
);
// Backends
-$authBackend = new \OCA\DAV\Connector\Sabre\Auth();
+$authBackend = new \OCA\DAV\Connector\Sabre\Auth(
+ \OC::$server->getSession(),
+ \OC::$server->getUserSession()
+);
$requestUri = \OC::$server->getRequest()->getRequestUri();
$server = $serverFactory->createServer($baseuri, $requestUri, $authBackend, function() {