Skip to content
Snippets Groups Projects
Commit 9917c611 authored by Lukas Reschke's avatar Lukas Reschke Committed by Jörn Friedrich Dreyer
Browse files

Disable listing of all users

parent 1dfa6f3d
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment