Merge pull request #20397 from owncloud/fix-carddav-lookup

Register DAVACL plugin to provide current-user-principal
This commit is contained in:
Thomas Müller 2015-11-09 16:02:05 +01:00
commit 3ee6fda8ec
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,8 @@ class Server {
$this->server->addPlugin(new BlockLegacyClientPlugin(\OC::$server->getConfig()));
$this->server->addPlugin(new Plugin($authBackend, 'ownCloud'));
$this->server->addPlugin(new \Sabre\DAVACL\Plugin());
// wait with registering these until auth is handled and the filesystem is setup
$this->server->on('beforeMethod', function () {
// custom properties plugin must be the last one