Register DAVACL plugin to provide current-user-principal

This commit is contained in:
Thomas Müller 2015-11-09 13:27:19 +01:00
parent 2e8d8bf4ef
commit 836173289f
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