Disable listing of all users

This commit is contained in:
Lukas Reschke 2012-08-13 01:22:53 +02:00 committed by Jörn Friedrich Dreyer
parent 1dfa6f3d8f
commit 9917c611d3
2 changed files with 13 additions and 6 deletions

View file

@ -21,10 +21,14 @@ $principalBackend = new OC_Connector_Sabre_Principal();
$caldavBackend = new OC_Connector_Sabre_CalDAV();
// Root nodes
$collection = new Sabre_CalDAV_Principal_Collection($principalBackend);
$collection->disableListing = true; // Disable listening
$nodes = array(
new Sabre_CalDAV_Principal_Collection($principalBackend),
$collection,
new Sabre_CalDAV_CalendarRootNode($principalBackend, $caldavBackend),
);
);
// Fire up server
$server = new Sabre_DAV_Server($nodes);

View file

@ -36,10 +36,13 @@ $principalBackend = new OC_Connector_Sabre_Principal();
$carddavBackend = new OC_Connector_Sabre_CardDAV();
// Root nodes
$collection = new Sabre_CalDAV_Principal_Collection($principalBackend);
$collection->disableListing = true; // Disable listening
$nodes = array(
new Sabre_CalDAV_Principal_Collection($principalBackend),
$collection,
new Sabre_CardDAV_AddressBookRoot($principalBackend, $carddavBackend),
);
);
// Fire up server
$server = new Sabre_DAV_Server($nodes);