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-24 13:57:55 +00:00
commit 85538d0ece
2 changed files with 4 additions and 3 deletions

View File

@ -268,7 +268,7 @@ $c->admin_email = 'calendar-admin@example.com';
// 'type' => 'calendar', // 'type' => 'calendar',
// 'name' => 'calendar', // 'name' => 'calendar',
// 'displayname' => '%fn 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? // XXX Should we not do this for ROOMS?
if( !empty($c->home_addressbook_name) ) if( !empty($c->home_addressbook_name) )
$c->default_collections[] = array( $c->default_collections[] = array(
'type' => 'addressbook', 'type' => 'addressbook',
'name' => $c->home_addressbook_name 'name' => $c->home_addressbook_name,
'privileges' => array()
); );
} }