1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/agendav_ynh.git synced 2024-09-03 20:36:12 +02:00

enable calendar sharing

This commit is contained in:
Julien Malik 2014-01-08 16:33:05 +01:00
parent 7862111193
commit eb02d3e047
2 changed files with 18 additions and 1 deletions

View file

@ -84,7 +84,7 @@ $config['public_caldav_url'] = '';
* support WebDAV ACLs disable sharing
*/
$config['enable_calendar_sharing'] = FALSE;
$config['enable_calendar_sharing'] = TRUE;
// Default permissions for calendar owner
$config['owner_permissions'] = array('all', 'read', 'unlock', 'read-acl',

View file

@ -500,6 +500,23 @@ class Caldav {
*/
function setacl( $user, $passwd, $calendar = '',
$share_with = array()) {
/**
* Modification for Yunohost
*
* Radicale does not support ACL as Agendav implements it,
* and this triggers an error 502.
*
* But Radicale is set up without ACL (because of the LDAP plugin),
* so actually all users have read-write access to all other users
* collections.
* This is sufficient for us to enable the sharing of calendars in
* AgenDAV. We simply skip the ACL request. Sharing status is
* stored by AgenDAV in its db.
*
*/
return TRUE;
$this->prepare_client($user, $passwd, '');
// Preconditions