From 2caea0a39eaf896a89ba4368f942b7783ad4fdb9 Mon Sep 17 00:00:00 2001 From: Carl Bettermann Date: Thu, 24 Apr 2025 15:03:41 +0200 Subject: [PATCH] Set default privileges to none to prevent other users from accessing address books --- inc/auth-functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/auth-functions.php b/inc/auth-functions.php index e8097930..1344dc51 100644 --- a/inc/auth-functions.php +++ b/inc/auth-functions.php @@ -106,8 +106,9 @@ function CreateHomeCollections( $username, $default_timezone = null ) { // XXX Should we not do this for ROOMS? if( !empty($c->home_addressbook_name) ) $c->default_collections[] = array( - 'type' => 'addressbook', - 'name' => $c->home_addressbook_name + 'type' => 'addressbook', + 'name' => $c->home_addressbook_name, + 'privileges' => array() ); }