mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-20 01:44:15 +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
85538d0ece
@ -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()
|
||||||
// )
|
// )
|
||||||
// );
|
// );
|
||||||
|
|
||||||
|
|||||||
@ -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()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user