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:
parent
e82dd11a00
commit
d504b76d47
@ -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
|
||||||
$nodes = array(
|
$collection = new Sabre_CalDAV_Principal_Collection($principalBackend);
|
||||||
new Sabre_CalDAV_Principal_Collection($principalBackend),
|
$collection->disableListing = true; // Disable listening
|
||||||
|
|
||||||
|
$nodes = array(
|
||||||
|
$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);
|
||||||
|
Loading…
Reference in New Issue
Block a user