1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-01 13:24:10 +01:00

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 e82dd11a00
commit d504b76d47

View File

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