Disable listing of all users
This commit is contained in:
parent
1dfa6f3d8f
commit
9917c611d3
2 changed files with 13 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue