Merge branch 'restrict-default-addressbook-privileges' into 'master'

Set default privileges to none to prevent other users from accessing address books

See merge request davical-project/davical!146
This commit is contained in:
Carl Bettermann 2025-04-25 08:56:25 +00:00
commit 4fc34e49df
2 changed files with 4 additions and 3 deletions

View File

@ -268,7 +268,7 @@ $c->admin_email = 'calendar-admin@example.com';
// 'type' => 'calendar',
// 'name' => 'calendar',
// 'displayname' => '%fn calendar',
// 'privileges' => null
// 'privileges' => array()
// )
// );

View File

@ -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()
);
}