Configuration/settings/default relationships: Difference between revisions

From Davical
Jump to navigationJump to search
(default relationships now added with all drivers and internal auth)
m (formatting)
 
Line 14: Line 14:


{{AvailableFrom|0.9.8.5}} for users created with the LDAP driver
{{AvailableFrom|0.9.8.5}} for users created with the LDAP driver
{{AvailableFrom|1.1.5}} for internal auth and all drivers shipped with DAViCal
{{AvailableFrom|1.1.5}} for internal auth and all drivers shipped with DAViCal

Latest revision as of 15:54, 6 January 2017

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