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:
parent
e82dd11a00
commit
d504b76d47
@ -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 New Issue
Block a user