mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-18 07:52:21 +01:00
Disable user enumeration
This commit is contained in:
parent
b8e3ec55e7
commit
95b72311f5
@ -36,12 +36,15 @@ $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
|
||||
$Sabre_CalDAV_Principal_Collection = new Sabre_CalDAV_Principal_Collection($principalBackend);
|
||||
$Sabre_CalDAV_Principal_Collection->disableListing = true; // Disable listening
|
||||
|
||||
$Sabre_CardDAV_AddressBookRoot = new Sabre_CardDAV_AddressBookRoot($principalBackend, $carddavBackend);
|
||||
$Sabre_CardDAV_AddressBookRoot->disableListing = true; // Disable listening
|
||||
|
||||
$nodes = array(
|
||||
$collection,
|
||||
new Sabre_CardDAV_AddressBookRoot($principalBackend, $carddavBackend),
|
||||
$Sabre_CalDAV_Principal_Collection,
|
||||
$Sabre_CardDAV_AddressBookRoot,
|
||||
);
|
||||
|
||||
// Fire up server
|
||||
|
Loading…
x
Reference in New Issue
Block a user