Configuration/settings/default relationships

From Davical
Revision as of 14:53, 6 January 2017 by Fsfs (talk | contribs) (default relationships now added with all drivers and internal auth)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

If the $c->default_privileges is not suitable for desired permission settings, for complex permission management you can use $c->default_relationships:

$c->default_relationships = array(
    4563 => array('read','read-current-user-privilege-set'),
    4564 => array('read','read-current-user-privilege-set','read-free-busy','schedule-deliver-invite', 'schedule-deliver-reply', 'schedule-query-freebusy'),
    4565 => array('read','write-properties','write-content','read-current-user-privilege-set','bind','unbind','read-free-busy','schedule-deliver-invite',
                  'schedule-deliver-reply','schedule-query-freebusy')
);

This would set principals grants with specified permissions for newly created users. For example: 4563 => array('read','read-current-user-privilege-set') allows read and read-current-user-privilege-set to principal with ID 4563.


Template:AvailableFrom for users created with the LDAP driver Template:AvailableFrom for internal auth and all drivers shipped with DAViCal