mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-28 05:53:35 +00:00
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:
commit
4fc34e49df
@ -268,7 +268,7 @@ $c->admin_email = 'calendar-admin@example.com';
|
||||
// 'type' => 'calendar',
|
||||
// 'name' => 'calendar',
|
||||
// 'displayname' => '%fn calendar',
|
||||
// 'privileges' => null
|
||||
// 'privileges' => array()
|
||||
// )
|
||||
// );
|
||||
|
||||
|
||||
@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user