Difference between revisions of "Configuration/settings/default privileges"

From Davical
Jump to navigationJump to search
(New page: $c->default_privileges = array('read-free-busy', 'schedule-deliver'); default: array('read-free-busy', 'schedule-deliver') These are the default privileges granted by new users to all o...)
 
(Clarify ordering irrelevance.)
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
  
 
These are the default privileges granted by new users to all other users on the system.  The default values of 'read-free-busy' and 'schedule-deliver' mean that any system user will be able to see the new user's free/busy time, and will be able to invite them to meetings and respond to invitations from them.
 
These are the default privileges granted by new users to all other users on the system.  The default values of 'read-free-busy' and 'schedule-deliver' mean that any system user will be able to see the new user's free/busy time, and will be able to invite them to meetings and respond to invitations from them.
 +
 +
The order of the privileges in the array is unimportant, as they are stored as a bitmask and constructed as a bitwise OR from the elements in the array.
  
 
== Sample Scenarios ==
 
== Sample Scenarios ==
Line 9: Line 11:
  
 
In a small office environment you may want to simply allow everyone to see everyone else's calendar, and so you can add the 'read' and 'read-current-user-privilege-set' privileges into the list.
 
In a small office environment you may want to simply allow everyone to see everyone else's calendar, and so you can add the 'read' and 'read-current-user-privilege-set' privileges into the list.
 +
 +
$c->default_privileges = array('read', 'read-current-user-privilege-set',
 +
                                    'read-free-busy', 'schedule-deliver');
  
 
=== No invitations ===
 
=== No invitations ===
  
In a setup where many unrelated groups have access to the calendar server, you may wish to deny invitations by default, as they could be used for spamming other users.  You should remove the 'schedule-deliver' privilege.
+
In a setup where many unrelated groups have access to the calendar server, you may wish to deny invitations by default, as they could be used for spamming other users.  You should switch the 'schedule-deliver' privilege to 'schedule-query-freebusy'.
 +
 
 +
$c->default_privileges = array('read-free-busy', 'schedule-query-free-busy');
 +
 
 +
Possibly you might also add 'schedule-deliver-reply' in it's place so that if some users ''do'' choose to allow people to send invitations to them, it is possible for replies to those invitations to be delivered.
  
Possibly you might change it to 'schedule-deliver-reply' so that if some users ''do'' choose to allow people to send invitations to them, it is possible for replies to those invitations to be delivered.
+
$c->default_privileges = array('read-free-busy', 'schedule-query-free-busy', 'schedule-deliver-reply');
  
 
=== Other Information ===
 
=== Other Information ===
  
The full set of possible privileges is described on the [[Permissions]] page.
+
The full set of possible privileges is described on the [[Permissions]] page, with some examples on the [[Permissions/Examples]] page.
  
 
{{AvailableFrom|0.9.8.1}}
 
{{AvailableFrom|0.9.8.1}}

Latest revision as of 01:17, 1 February 2011

$c->default_privileges = array('read-free-busy', 'schedule-deliver');

default: array('read-free-busy', 'schedule-deliver')

These are the default privileges granted by new users to all other users on the system. The default values of 'read-free-busy' and 'schedule-deliver' mean that any system user will be able to see the new user's free/busy time, and will be able to invite them to meetings and respond to invitations from them.

The order of the privileges in the array is unimportant, as they are stored as a bitmask and constructed as a bitwise OR from the elements in the array.

Sample Scenarios

Everyone can see everything

In a small office environment you may want to simply allow everyone to see everyone else's calendar, and so you can add the 'read' and 'read-current-user-privilege-set' privileges into the list.

$c->default_privileges = array('read', 'read-current-user-privilege-set',
                                   'read-free-busy', 'schedule-deliver');

No invitations

In a setup where many unrelated groups have access to the calendar server, you may wish to deny invitations by default, as they could be used for spamming other users. You should switch the 'schedule-deliver' privilege to 'schedule-query-freebusy'.

$c->default_privileges = array('read-free-busy', 'schedule-query-free-busy');

Possibly you might also add 'schedule-deliver-reply' in it's place so that if some users do choose to allow people to send invitations to them, it is possible for replies to those invitations to be delivered.

$c->default_privileges = array('read-free-busy', 'schedule-query-free-busy', 'schedule-deliver-reply');

Other Information

The full set of possible privileges is described on the Permissions page, with some examples on the Permissions/Examples page.

Available from DAViCal version: 0.9.8.1 and later