Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-08-13 03:22:53 +0400
committerLukas Reschke <lukas@statuscode.ch>2012-08-13 03:22:53 +0400
commit2024d424cdc8de836848db4acc7dee148d018bb5 (patch)
treee2235dc5f161949d9c6f00561f2ad33e185cf3ac /apps
parent6d94455540781950b063b39385324ffe90f702c3 (diff)
Disable listing of all users
Diffstat (limited to 'apps')
-rw-r--r--apps/calendar/appinfo/remote.php10
-rw-r--r--apps/contacts/appinfo/remote.php9
2 files changed, 13 insertions, 6 deletions
diff --git a/apps/calendar/appinfo/remote.php b/apps/calendar/appinfo/remote.php
index 3bd8737ee97..93d57b2e40c 100644
--- a/apps/calendar/appinfo/remote.php
+++ b/apps/calendar/appinfo/remote.php
@@ -21,10 +21,14 @@ $principalBackend = new OC_Connector_Sabre_Principal();
$caldavBackend = new OC_Connector_Sabre_CalDAV();
// Root nodes
-$nodes = array(
- new Sabre_CalDAV_Principal_Collection($principalBackend),
+$collection = new Sabre_CalDAV_Principal_Collection($principalBackend);
+$collection->disableListing = true; // Disable listening
+
+$nodes = array(
+ $collection,
new Sabre_CalDAV_CalendarRootNode($principalBackend, $caldavBackend),
-);
+ );
+
// Fire up server
$server = new Sabre_DAV_Server($nodes);
diff --git a/apps/contacts/appinfo/remote.php b/apps/contacts/appinfo/remote.php
index ef50e4ad39f..2a6a3bea2e1 100644
--- a/apps/contacts/appinfo/remote.php
+++ b/apps/contacts/appinfo/remote.php
@@ -36,10 +36,13 @@ $principalBackend = new OC_Connector_Sabre_Principal();
$carddavBackend = new OC_Connector_Sabre_CardDAV();
// Root nodes
-$nodes = array(
- new Sabre_CalDAV_Principal_Collection($principalBackend),
+$collection = new Sabre_CalDAV_Principal_Collection($principalBackend);
+$collection->disableListing = true; // Disable listening
+
+$nodes = array(
+ $collection,
new Sabre_CardDAV_AddressBookRoot($principalBackend, $carddavBackend),
-);
+ );
// Fire up server
$server = new Sabre_DAV_Server($nodes);