1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-11-29 11:24:11 +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();
// 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);