Merge pull request #20397 from owncloud/fix-carddav-lookup
Register DAVACL plugin to provide current-user-principal
This commit is contained in:
commit
3ee6fda8ec
|
@ -33,6 +33,8 @@ class Server {
|
||||||
$this->server->addPlugin(new BlockLegacyClientPlugin(\OC::$server->getConfig()));
|
$this->server->addPlugin(new BlockLegacyClientPlugin(\OC::$server->getConfig()));
|
||||||
$this->server->addPlugin(new Plugin($authBackend, 'ownCloud'));
|
$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
|
// wait with registering these until auth is handled and the filesystem is setup
|
||||||
$this->server->on('beforeMethod', function () {
|
$this->server->on('beforeMethod', function () {
|
||||||
// custom properties plugin must be the last one
|
// custom properties plugin must be the last one
|
||||||
|
|
Loading…
Reference in New Issue