diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-10-23 17:26:54 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-10-23 17:30:47 +0200 |
commit | cddc9abc06fbe35e5e21a736678ae647ca72d31a (patch) | |
tree | 9b7f92ce7d6fca7b3339f7d30bca8a719dcfa713 /apps/dav/appinfo/v1 | |
parent | 0aaef4c2993f6fd37136904142ed58986b5d8f27 (diff) | |
download | nextcloud-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.php | 5 |
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() { |