Configuration/Default Relationships
From DAViCal Wiki
DAViCal from 0.9.2 can automatically add a calendar and relationships when a user logs into the web interface for the first time. To do this you need to add some settings to your configuration file, as follows:
$c->default_relationships = array( <user_no> => '<access>' [, <user_no> => '<access>' [, ...]] );
In this case <user_no> is the ID for the user which the relationship will be created to, and <access> is the type of access the relationship confers:
- RW for read-write access,
- R for read-only access and
- F for free-busy access.
Example
$c->default_relationships = array( 1005 => 'RW', // Give everyone read/write access to meeting rooms and resources 1007 => 'R' // Give everyone read access to everyone else );

