diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-24 11:15:31 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-25 22:23:34 +0100 |
commit | c25a7cc4daf486b7ad8e50a5209acda061734d6c (patch) | |
tree | 464dbfeb646de136b5634096a861c354eef7bb97 /apps/dav/lib/server.php | |
parent | 28783030d0a33207b62fc059971876eed23ad54e (diff) | |
download | nextcloud-server-c25a7cc4daf486b7ad8e50a5209acda061734d6c.tar.gz nextcloud-server-c25a7cc4daf486b7ad8e50a5209acda061734d6c.zip |
Users are available under it's own principal resource named 'principals/users' this will allow us to introduce e.g. groups as principals (one day) and system specific principals (needed for federation)
Diffstat (limited to 'apps/dav/lib/server.php')
-rw-r--r-- | apps/dav/lib/server.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/dav/lib/server.php b/apps/dav/lib/server.php index 587c0091e23..ffdb917085e 100644 --- a/apps/dav/lib/server.php +++ b/apps/dav/lib/server.php @@ -41,9 +41,13 @@ class Server { $this->server->addPlugin(new \OCA\DAV\Connector\Sabre\ListenerPlugin($dispatcher)); $this->server->addPlugin(new \Sabre\DAV\Sync\Plugin()); + // acl + $acl = new \Sabre\DAVACL\Plugin(); + $acl->defaultUsernamePath = 'principals/users'; + $this->server->addPlugin($acl); + // calendar plugins $this->server->addPlugin(new \Sabre\CalDAV\Plugin()); - $this->server->addPlugin(new \Sabre\DAVACL\Plugin()); $this->server->addPlugin(new \Sabre\CalDAV\ICSExportPlugin()); $senderEmail = \OCP\Util::getDefaultEmailAddress('no-reply'); $this->server->addPlugin(new \Sabre\CalDAV\Schedule\Plugin()); |